Attempt to fix note resizing with React keys and Muuri sync

This commit is contained in:
2026-01-24 19:52:13 +01:00
parent d59ec592eb
commit 8e35780717
48 changed files with 3369 additions and 279 deletions

View File

@@ -9,10 +9,10 @@ interface ThemeInitializerProps {
export function ThemeInitializer({ theme, fontSize }: ThemeInitializerProps) {
useEffect(() => {
console.log('[ThemeInitializer] Received theme:', theme)
// Helper to apply theme
const applyTheme = (t?: string) => {
console.log('[ThemeInitializer] Applying theme:', t)
if (!t) return
const root = document.documentElement
@@ -66,7 +66,7 @@ export function ThemeInitializer({ theme, fontSize }: ThemeInitializerProps) {
const localTheme = localStorage.getItem('theme-preference')
const effectiveTheme = localTheme || theme
console.log('[ThemeInitializer] Local theme:', localTheme, '| Server theme:', theme, '| Using:', effectiveTheme)
applyTheme(effectiveTheme)