This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-17 05:12:16 -04:00
1 parent 5424ac5891
commit 6fcb38fe2e
1 file changed
+18 -22
+18 -22
View File
@@ -533,8 +533,9 @@
<div <div
class="flex w-full items-center gap-2 px-2 pb-2 text-xs text-gray-400 dark:text-gray-600" class="flex w-full items-center gap-2 px-2 pb-2 text-xs text-gray-400 dark:text-gray-600"
> >
<div class="flex min-w-0 flex-1 items-center gap-3">
<button <button
class="flex min-w-0 flex-1 items-center gap-1 py-0.5 text-left" class="flex min-w-0 items-center gap-1 py-0.5 text-left"
type="button" type="button"
on:click={() => setSortKey('name')} on:click={() => setSortKey('name')}
> >
@@ -548,10 +549,8 @@
{/if} {/if}
</button> </button>
<div class="hidden w-44 shrink-0 md:block"></div>
<button <button
class="flex w-36 shrink-0 items-center justify-end gap-1 py-0.5 text-right" class="flex shrink-0 items-center gap-1 py-0.5 text-left"
type="button" type="button"
on:click={() => setSortKey('updated_at')} on:click={() => setSortKey('updated_at')}
> >
@@ -565,6 +564,9 @@
{/if} {/if}
</button> </button>
</div> </div>
<div class="hidden w-44 shrink-0 md:block"></div>
</div>
{/if} {/if}
{#each groupedNotes as [timeRange, notesList], idx} {#each groupedNotes as [timeRange, notesList], idx}
@@ -586,11 +588,7 @@
}} }}
> >
<div class="flex min-w-0 flex-1 items-center gap-2"> <div class="flex min-w-0 flex-1 items-center gap-2">
<Tooltip <Tooltip content={note.title} className="min-w-0" placement="top-start">
content={note.title}
className="min-w-0 flex-1"
placement="top-start"
>
<div <div
dir="auto" dir="auto"
class="h-[20px] truncate text-[13px] leading-5 text-gray-800 hover:underline dark:text-gray-200" class="h-[20px] truncate text-[13px] leading-5 text-gray-800 hover:underline dark:text-gray-200"
@@ -599,8 +597,18 @@
</div> </div>
</Tooltip> </Tooltip>
<Tooltip content={dayjs(note.updated_at / 1000000).format('LLLL')}>
<div <div
class="hidden w-44 shrink-0 truncate text-right text-[11px] leading-5 text-gray-500 dark:text-gray-500 md:block" class="shrink-0 truncate text-[11px] leading-5 text-gray-400 dark:text-gray-600"
>
{dayjs(note.updated_at / 1000000).fromNow()}
</div>
</Tooltip>
</div>
<div class="ml-2 flex shrink-0 items-center justify-end gap-2">
<div
class="hidden max-w-44 shrink-0 truncate text-right text-[11px] leading-5 text-gray-500 dark:text-gray-500 md:block"
> >
<Tooltip <Tooltip
content={note?.user?.email ?? $i18n.t('Deleted User')} content={note?.user?.email ?? $i18n.t('Deleted User')}
@@ -615,18 +623,6 @@
</Tooltip> </Tooltip>
</div> </div>
<div class="w-28 shrink-0">
<Tooltip content={dayjs(note.updated_at / 1000000).format('LLLL')}>
<div
class="min-w-0 truncate text-right text-xs text-gray-400 dark:text-gray-600"
>
{dayjs(note.updated_at / 1000000).fromNow()}
</div>
</Tooltip>
</div>
</div>
<div class="flex shrink-0 items-center justify-end">
<NoteMenu <NoteMenu
show={openNoteMenuId === note.id} show={openNoteMenuId === note.id}
onDownload={(type) => { onDownload={(type) => {