feat(editor): resizable outline panel (#161)

Add a drag handle to resize the outline panel and persist its width in
vault state (outline_width). Outline text now scales with the editor
font size.

Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/161
This commit is contained in:
mf
2026-06-24 21:01:43 +02:00
committed by ArkHost
parent 16805c96aa
commit f98b3415bc
5 changed files with 26 additions and 4 deletions
+4
View File
@@ -26,6 +26,7 @@ export const sidebarCollapsed = writable(false);
export const notelistCollapsed = writable(false);
export const sidebarWidth = writable(220);
export const notelistWidth = writable(280);
export const outlineWidth = writable(220);
export const searchQuery = writable("");
export const showCommandPalette = writable(false);
export const showSearch = writable(false);
@@ -227,6 +228,7 @@ export const vaultState = derived(
activeNotePath,
sidebarWidth,
notelistWidth,
outlineWidth,
sidebarCollapsed,
notelistCollapsed,
collapsedNotebooks,
@@ -238,6 +240,7 @@ export const vaultState = derived(
$activeNotePath,
$sidebarWidth,
$notelistWidth,
$outlineWidth,
$sidebarCollapsed,
$notelistCollapsed,
$collapsedNotebooks,
@@ -249,6 +252,7 @@ export const vaultState = derived(
last_open_note: $activeNotePath,
sidebar_width: $sidebarWidth,
notelist_width: $notelistWidth,
outline_width: $outlineWidth,
sidebar_collapsed: $sidebarCollapsed,
notelist_collapsed: $notelistCollapsed,
collapsed_notebooks: $collapsedNotebooks,