diff --git a/src/app.css b/src/app.css index dec432d..538e550 100644 --- a/src/app.css +++ b/src/app.css @@ -810,7 +810,8 @@ /* Table of Contents highlighting - improved contrast */ .toc-highlight { @apply bg-primary-300 dark:bg-primary-700 border-s-4 border-primary-700 - rounded dark:border-primary-300 font-medium text-gray-900 dark:text-gray-100; + rounded dark:border-primary-300 font-medium text-gray-900 + dark:text-gray-100; transition: all 0.2s ease-in-out; } diff --git a/src/lib/services/publisher.ts b/src/lib/services/publisher.ts index fbdd42a..59fb0a1 100644 --- a/src/lib/services/publisher.ts +++ b/src/lib/services/publisher.ts @@ -134,10 +134,13 @@ export async function publishSingleEvent( dTag: tags.find((t) => t[0] === "d")?.[1], }); // Simulate network delay - await new Promise((resolve) => setTimeout(resolve, 300 + Math.random() * 200)); + await new Promise((resolve) => + setTimeout(resolve, 300 + Math.random() * 200) + ); // Generate a fake event ID - const fakeEventId = Array.from({ length: 64 }, () => - Math.floor(Math.random() * 16).toString(16), + const fakeEventId = Array.from( + { length: 64 }, + () => Math.floor(Math.random() * 16).toString(16), ).join(""); return { success: true, eventId: fakeEventId }; } diff --git a/src/lib/stores/themeStore.ts b/src/lib/stores/themeStore.ts index da87b9d..1101912 100644 --- a/src/lib/stores/themeStore.ts +++ b/src/lib/stores/themeStore.ts @@ -13,7 +13,7 @@ theme.subscribe((v) => { const themeValue = String(v); document.documentElement.dataset.theme = themeValue; localStorage.setItem(KEY, themeValue); - + // Add .dark class for non-light themes (ocean, forrest are dark themes) // Remove .dark class for light theme if (themeValue === "light") {