From 9d82f2aed78c6080a24d31738018b989a05a85d3 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Mon, 8 Jun 2026 21:21:54 +0200 Subject: [PATCH] tidy AppConfig types, md-it shims, dead CSS --- src/lib/components/NoteList.svelte | 15 --------------- src/lib/shims.d.ts | 5 +++++ src/lib/types.ts | 2 ++ 3 files changed, 7 insertions(+), 15 deletions(-) create mode 100644 src/lib/shims.d.ts diff --git a/src/lib/components/NoteList.svelte b/src/lib/components/NoteList.svelte index b8ee7e4..e564647 100644 --- a/src/lib/components/NoteList.svelte +++ b/src/lib/components/NoteList.svelte @@ -1841,21 +1841,6 @@ padding: 2px 8px 4px; } - .tag-edit-input { - width: 100%; - padding: 4px 8px; - border: 1px solid var(--border-color); - border-radius: 4px; - background: var(--bg-secondary); - color: var(--text-primary); - font-size: 12px; - outline: none; - } - - .tag-edit-input:focus { - border-color: var(--accent); - } - .tag-edit-list { max-height: 160px; overflow-y: auto; diff --git a/src/lib/shims.d.ts b/src/lib/shims.d.ts new file mode 100644 index 0000000..22c4169 --- /dev/null +++ b/src/lib/shims.d.ts @@ -0,0 +1,5 @@ +// Ambient type shims for markdown-it plugins that ship without their own TypeScript +// declarations. Type-only; no runtime effect. +declare module 'markdown-it-mark'; +declare module 'markdown-it-sub'; +declare module 'markdown-it-sup'; diff --git a/src/lib/types.ts b/src/lib/types.ts index bd20048..14e1962 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -65,6 +65,7 @@ export interface AppConfig { pdf_height: number; title_mode: string; hide_title_in_body: boolean; + show_line_numbers: boolean; backup_enabled: boolean; backup_frequency: string; backup_max_count: number; @@ -83,6 +84,7 @@ export interface AppConfig { ai_writing_style: string | null; default_view_mode: boolean; show_tray_icon: boolean; + close_to_tray: boolean; enable_wiki_links: boolean; restore_last_session: boolean; sync_provider: string | null;