fix: stop the note editor date reading as a button (#29708)

This commit is contained in:
G30 2026-09-06 15:31:47 -04:00 committed by GitHub
parent a3c90e5aac
commit ffe6ab9869
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1263,7 +1263,7 @@ ${content}
<div
class="flex gap-0.5 items-center text-xs font-normal text-gray-500 dark:text-gray-500 w-fit"
>
<button class=" flex items-center gap-1 w-fit py-1 px-1.5 rounded-lg min-w-fit">
<div class=" flex items-center gap-1 w-fit py-1 px-1.5 rounded-lg min-w-fit">
<!-- check for same date, yesterday, last week, and other -->
{#if dayjs(note.created_at / 1000000).isSame(dayjs(), 'day')}
@ -1285,7 +1285,7 @@ ${content}
{:else}
<span>{dayjs(note.created_at / 1000000).format($i18n.t('DD/MM/YYYY'))}</span>
{/if}
</button>
</div>
{#if editor}
<div class="flex items-center gap-1 px-1 min-w-fit">