This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-21 13:27:07 +04:00
1 parent 61301c1748
commit a78a66e7de
315 files changed
+1164 -974

No files matched your search

+7 -7
View File
@@ -1233,7 +1233,7 @@ ${content}
>
<Tooltip content={$i18n.t('Generate')}>
<button
class="flex size-5 items-center justify-center self-center dark:hover:text-white transition disabled:cursor-not-allowed"
class="flex size-5 items-center justify-center self-center dark:hover:text-base-0 transition disabled:cursor-not-allowed"
id="generate-title-button"
aria-label={$i18n.t('Generate')}
disabled={(note?.user_id !== $user?.id && $user?.role !== 'admin') ||
@@ -1266,7 +1266,7 @@ ${content}
<div>
<div class="flex items-center gap-0.5 self-center min-w-fit" dir="ltr">
<button
class="self-center p-1 hover:enabled:bg-black/5 dark:hover:enabled:bg-white/5 dark:hover:enabled:text-white hover:enabled:text-black rounded-md transition disabled:cursor-not-allowed disabled:text-base-500 disabled:hover:text-base-500"
class="self-center p-1 hover:enabled:bg-base-1000/5 dark:hover:enabled:bg-base-0/5 dark:hover:enabled:text-base-0 hover:enabled:text-base-1000 rounded-md transition disabled:cursor-not-allowed disabled:text-base-500 disabled:hover:text-base-500"
aria-label={$i18n.t('Undo')}
on:click={() => {
editor.chain().focus().undo().run();
@@ -1278,7 +1278,7 @@ ${content}
</button>
<button
class="self-center p-1 hover:enabled:bg-black/5 dark:hover:enabled:bg-white/5 dark:hover:enabled:text-white hover:enabled:text-black rounded-md transition disabled:cursor-not-allowed disabled:text-base-500 disabled:hover:text-base-500"
class="self-center p-1 hover:enabled:bg-base-1000/5 dark:hover:enabled:bg-base-0/5 dark:hover:enabled:text-base-0 hover:enabled:text-base-1000 rounded-md transition disabled:cursor-not-allowed disabled:text-base-500 disabled:hover:text-base-500"
aria-label={$i18n.t('Redo')}
on:click={() => {
editor.chain().focus().redo().run();
@@ -1296,7 +1296,7 @@ ${content}
<Tooltip content={$i18n.t('Chat')} placement="top">
<button
type="button"
class="p-1 bg-transparent hover:bg-white/5 transition rounded-lg"
class="p-1 bg-transparent hover:bg-base-0/5 transition rounded-lg"
aria-label={$i18n.t('Chat')}
bind:this={noteChatButtonElement}
on:click={openNoteChat}
@@ -1306,7 +1306,7 @@ ${content}
</Tooltip>
<CommentButton
className="p-1 bg-transparent hover:bg-white/5 transition rounded-lg"
className="p-1 bg-transparent hover:bg-base-0/5 transition rounded-lg"
onComment={(request) => (currentNoteComments = request)}
resource={{ resource_type: 'note', resource_id: note.id }}
/>
@@ -1362,7 +1362,7 @@ ${content}
<Tooltip content={$i18n.t('Record')} placement="top">
<button
type="button"
class="p-1 bg-transparent hover:bg-white/5 transition rounded-lg"
class="p-1 bg-transparent hover:bg-base-0/5 transition rounded-lg"
aria-label={$i18n.t('Record')}
>
<Mic className="size-4" />
@@ -1414,7 +1414,7 @@ ${content}
>
<button
type="button"
class="p-1 bg-transparent hover:bg-white/5 transition rounded-lg"
class="p-1 bg-transparent hover:bg-base-0/5 transition rounded-lg"
aria-label={$i18n.t('Note Menu')}
>
<EllipsisHorizontal className="size-5" />
+1 -1
View File
@@ -66,7 +66,7 @@
<div
class="w-full z-40 pointer-events-auto overflow-hidden scrollbar-hidden flex flex-col {floating
? ''
: 'bg-white dark:bg-base-900'}"
: 'bg-base-0 dark:bg-base-900'}"
>
<slot />
</div>
+1 -1
View File
@@ -23,7 +23,7 @@
<Dropdown align="start" closeOnSelect>
<button
class="{className} flex size-5 items-center justify-center rounded-lg text-base-500 hover:text-base-900 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5"
class="{className} flex size-5 items-center justify-center rounded-lg text-base-500 hover:text-base-900 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5"
disabled={busy}
aria-label={$i18n.t('Page menu')}><EllipsisHorizontal className="size-3.5" /></button
>
+2 -2
View File
@@ -213,7 +213,7 @@
<span>{$i18n.t('Pages')}</span>
<button
class="flex size-5 items-center justify-center rounded-lg hover:text-base-900 dark:hover:text-white"
class="flex size-5 items-center justify-center rounded-lg hover:text-base-900 dark:hover:text-base-0"
aria-label={$i18n.t('Close pages')}
on:click={onClose}><XMark className="size-3.5" /></button
>
@@ -284,7 +284,7 @@
{/if}
{#if editable}
<button
class="flex size-5 shrink-0 items-center justify-center rounded-lg text-base-500 hover:text-base-900 dark:hover:text-white {activeId ===
class="flex size-5 shrink-0 items-center justify-center rounded-lg text-base-500 hover:text-base-900 dark:hover:text-base-0 {activeId ===
page.id
? ''
: 'sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100'}"
+6 -6
View File
@@ -235,7 +235,7 @@
const menuLabel = 'px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500';
const iconButton =
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white dark:aria-expanded:bg-base-850 dark:aria-expanded:text-white';
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0 dark:aria-expanded:bg-base-850 dark:aria-expanded:text-base-0';
// Same payload as sidebar page links, so a note can be dropped into split view;
// the text/plain note entry still lets the chat composer attach it.
@@ -896,7 +896,7 @@
<a
href={noteUrl(note)}
on:dragstart={(e) => noteDragStartHandler(e, note)}
class="focus-ring flex min-w-0 flex-col items-center gap-1 rounded-xl px-1 pt-2 pb-1.5 text-center transition-colors duration-75 hover:bg-base-50/60 dark:hover:bg-white/4"
class="focus-ring flex min-w-0 flex-col items-center gap-1 rounded-xl px-1 pt-2 pb-1.5 text-center transition-colors duration-75 hover:bg-base-50/60 dark:hover:bg-base-0/4"
aria-label={note.title}
>
<span
@@ -904,7 +904,7 @@
aria-hidden="true"
>
<span
class="relative h-[5.75rem] w-[4.75rem] overflow-hidden rounded-lg border border-base-200 bg-white shadow-xs dark:border-base-700 dark:bg-base-850"
class="relative h-[5.75rem] w-[4.75rem] overflow-hidden rounded-lg border border-base-200 bg-base-0 shadow-xs dark:border-base-700 dark:bg-base-850"
>
{#if note.data?.content?.md?.trim()}
<span
@@ -915,7 +915,7 @@
>{note.data.content.md.slice(0, 600)}</span
>
<span
class="pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-linear-to-t from-white from-15% to-transparent dark:from-base-850"
class="pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-linear-to-t from-base-0 from-15% to-transparent dark:from-base-850"
></span>
{:else}
<span class="flex h-full w-full items-center justify-center">
@@ -958,7 +958,7 @@
{#if shiftKey}
<Tooltip content={$i18n.t('Delete')}>
<button
class="absolute top-2.5 left-[calc(50%_+_12px)] flex size-6 items-center justify-center rounded-md bg-white/90 text-base-500 shadow-xs backdrop-blur-sm transition hover:text-base-800 dark:bg-base-800/90 dark:text-base-400 dark:hover:text-base-100"
class="absolute top-2.5 left-[calc(50%_+_12px)] flex size-6 items-center justify-center rounded-md bg-base-0/90 text-base-500 shadow-xs backdrop-blur-sm transition hover:text-base-800 dark:bg-base-800/90 dark:text-base-400 dark:hover:text-base-100"
type="button"
aria-label={$i18n.t('Delete')}
on:click={(e) => {
@@ -1010,7 +1010,7 @@
}}
>
<button
class="absolute top-2.5 left-[calc(50%_+_12px)] flex size-6 items-center justify-center rounded-md bg-white/90 text-base-500 shadow-xs backdrop-blur-sm transition hover:text-base-800 group-hover:opacity-100 group-focus-within:opacity-100 dark:bg-base-800/90 dark:text-base-400 dark:hover:text-base-100 max-md:opacity-100 {openNoteMenuId ===
class="absolute top-2.5 left-[calc(50%_+_12px)] flex size-6 items-center justify-center rounded-md bg-base-0/90 text-base-500 shadow-xs backdrop-blur-sm transition hover:text-base-800 group-hover:opacity-100 group-focus-within:opacity-100 dark:bg-base-800/90 dark:text-base-400 dark:hover:text-base-100 max-md:opacity-100 {openNoteMenuId ===
note.id
? 'opacity-100'
: 'opacity-0'}"
+2 -2
View File
@@ -104,8 +104,8 @@ export const downloadPdf = async (note) => {
node.appendChild(contentNode);
node.classList.add('text-black');
node.classList.add('dark:text-white');
node.classList.add('text-base-1000');
node.classList.add('dark:text-base-0');
node.style.width = `${virtualWidth}px`;
node.style.position = 'absolute';
node.style.left = '-9999px';