Skip to content

Commit e41eb23

Browse files
committed
Add improvements to UI and print styles
1 parent d814822 commit e41eb23

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

resources/views/components/menu/items.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
])
55

66
<div
7-
class="z-[35] border bg-light-base-200 dark:bg-base-950 border-light-base-300 dark:border-base-500 rounded-md shadow-lg p-1.5 text-light-base-950 dark:text-base-50"
8-
:class="wide ? 'min-w-[15rem]' : 'min-w-[10rem]'"
7+
class="z-[35] px-1.5 py-2 border bg-light-base-200 dark:bg-base-950 border-light-base-300 dark:border-base-500 rounded-md shadow-lg text-light-base-950 dark:text-base-50"
8+
:class="wide ? 'min-w-[15rem]' : 'min-w-[12rem]'"
99
x-show="menuOpen"
1010
x-cloak
1111
@if ($anchorElement)

resources/views/components/vault/fileDetails.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class="flex flex-grow p-0 px-1 text-lg font-semibold bg-transparent border-0 foc
1212
wire:model.live.debounce.500ms="nodeForm.name"
1313
/>
1414

15-
<div class="flex items-center gap-2">
15+
<div class="flex items-center gap-3">
1616
<span class="flex items-center" wire:loading.flex wire:target="nodeForm.name, nodeForm.content">
1717
<x-icons.spinner class="w-4 h-4 animate-spin" />
1818
</span>
@@ -57,7 +57,7 @@ class="flex flex-grow p-0 px-1 text-lg font-semibold bg-transparent border-0 foc
5757
</div>
5858
{{ $header }}
5959
</div>
60-
<div id="file-content" class="flex flex-grow w-full pb-4 overflow-y-auto print:overflow-y-visible">
60+
<div id="file-content" class="flex flex-grow w-full mb-4 overflow-y-auto">
6161
{{ $slot }}
6262
</div>
6363
</div>

resources/views/livewire/vault/show.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div
2-
class="flex flex-col h-dvh"
2+
class="flex flex-col h-dvh print:h-auto"
33
x-data="vault"
44
@mde-link.window="editor.toggleLink($event.detail.path)"
55
@mde-image.window="editor.setImage($event.detail.path)"
@@ -9,7 +9,7 @@ class="flex flex-col h-dvh"
99
@file-refreshed.window="$nextTick(() => { fileRefreshed() })"
1010
>
1111
<x-layouts.appHeader>
12-
<div class="flex items-center gap-2">
12+
<div class="flex items-center gap-3">
1313
<button
1414
class="hover:text-light-base-950 dark:hover:text-base-50"
1515
type="button"
@@ -26,7 +26,7 @@ class="hover:text-light-base-950 dark:hover:text-base-50"
2626
</button>
2727
</div>
2828

29-
<div class="flex items-center gap-2">
29+
<div class="flex items-center gap-3">
3030
<livewire:layout.notification-menu />
3131
<livewire:layout.user-menu />
3232
<button
@@ -61,11 +61,12 @@ class="fixed inset-0 z-20 opacity-50 bg-light-base-50 dark:bg-base-900"
6161
<div
6262
class="absolute xl:static flex flex-col top-0 left-0 bottom-0 z-30 w-[80%] max-w-[300px] xl:w-[20%] xl:max-w-[300px] bg-light-base-200 dark:bg-base-800 transition-all overflow-x-auto overflow-y-auto print:hidden"
6363
:class="{ 'translate-x-0': isLeftPanelOpen, '-translate-x-full hidden': !isLeftPanelOpen }"
64+
x-cloak
6465
>
6566
<livewire:vault.tree-view lazy="on-load" :vault="$this->vault" />
6667
</div>
6768

68-
<div class="flex-1 h-full max-w-full transition-all text-start">
69+
<div class="flex-1 h-full max-w-full transition-all" x-cloak>
6970
<div
7071
class="flex flex-col h-full w-full transition-maxwidth duration-300 ease-in-out mx-auto"
7172
:class="{ 'max-w-full': isContentWidthFull, 'max-w-[48rem]': !isContentWidthFull }"
@@ -77,14 +78,14 @@ class="flex flex-col h-full w-full transition-maxwidth duration-300 ease-in-out
7778
<x-tiptapEditor.toolbar />
7879
</x-slot:header>
7980
<div
80-
class="h-full w-full px-4 overflow-y-auto"
81+
class="h-full w-full px-4"
8182
:class="isEditingMarkdown ? 'hidden' : ''"
8283
spellcheck="false"
8384
x-ref="noteEditor"
8485
wire:ignore
8586
></div>
8687
<div
87-
class="h-full w-full px-4 overflow-y-auto whitespace-pre-wrap focus:outline-none"
88+
class="h-full w-full px-4 whitespace-pre-wrap focus:outline-none"
8889
:class="isEditingMarkdown ? '' : 'hidden'"
8990
:contenteditable="isEditMode ? 'plaintext-only' : 'false'"
9091
spellcheck="false"
@@ -171,6 +172,7 @@ class="overflow-hidden text-xs whitespace-nowrap text-ellipsis text-light-base-7
171172
<div
172173
class="absolute xl:static flex flex-col top-0 right-0 bottom-0 z-30 w-[80%] max-w-[300px] xl:w-[20%] xl:max-w-[300px] py-4 bg-light-base-200 dark:bg-base-800 transition-all overflow-x-auto overflow-y-auto print:hidden"
173174
:class="{ 'translate-x-0': isRightPanelOpen, '-translate-x-full hidden': !isRightPanelOpen }"
175+
x-cloak
174176
>
175177
<div class="flex flex-col gap-4 px-4 overflow-y-auto">
176178
@if ($this->selectedFile)

0 commit comments

Comments
 (0)