From 4097c3c9aced4c6b8ad5f9092e77e485799b1455 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 23 May 2026 22:23:16 +0000 Subject: [PATCH] ui: replace folder dropdown with full-screen settings view - Change header icon from folder to settings cog - Replace roots dropdown panel with full-screen settings overlay - Keep media roots as the only setting section for now --- frontend/src/components/Header.vue | 185 +++++++++++++++++++---------- 1 file changed, 119 insertions(+), 66 deletions(-) diff --git a/frontend/src/components/Header.vue b/frontend/src/components/Header.vue index 562e10a..c59f152 100644 --- a/frontend/src/components/Header.vue +++ b/frontend/src/components/Header.vue @@ -65,52 +65,68 @@
- -
-
- Media Roots - + +
+
+ +

Settings

+
-
-
-
- {{ root.name }} - {{ root.path }} -
-
- {{ root.status }} - +
+
+
+ +
+
-
-
-
- +
@@ -153,7 +169,7 @@ function _onPywebviewReady() { isDesktopApp.value = true; } window.addEventListener('pywebviewready', _onPywebviewReady, { once: true }); onUnmounted(() => window.removeEventListener('pywebviewready', _onPywebviewReady)); -const showRootsPanel = ref(false); +const showSettings = ref(false); const roots = ref([]); async function refreshRoots() { @@ -199,14 +215,14 @@ async function addRoot() { try { await replaceRoots(newRoots); await refreshRoots(); - showRootsPanel.value = false; + showSettings.value = false; } catch (e) { console.error('Failed to add root:', e); alert('Failed to add root'); } } -watch(showRootsPanel, (visible) => { +watch(showSettings, (visible) => { if (visible) void refreshRoots(); }); @@ -316,47 +332,84 @@ onUnmounted(() => { position: relative; } -.roots-panel { - position: absolute; - top: calc(100% + 8px); - right: 0; - width: 320px; - background: rgba(20, 20, 20, 0.95); - backdrop-filter: blur(16px); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 12px; - padding: 16px; - z-index: 1000; - box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); +.settings-view { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: var(--bg-primary); + z-index: 2000; + display: flex; + flex-direction: column; + overflow: hidden; } -.roots-panel-header { +.settings-header { display: flex; - justify-content: space-between; align-items: center; - margin-bottom: 12px; + justify-content: space-between; + padding: 16px 24px; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); + flex-shrink: 0; } -.roots-panel-title { - font-weight: 600; - font-size: 0.95rem; -} - -.roots-panel-close { +.settings-back { + display: inline-flex; + align-items: center; + gap: 8px; background: none; border: none; color: var(--text-secondary); - font-size: 1.2rem; + font-size: 0.9rem; cursor: pointer; - padding: 0 4px; + padding: 8px 0; + transition: color 0.2s; +} + +.settings-back:hover { + color: var(--text-primary); +} + +.settings-title { + font-size: 1.1rem; + font-weight: 600; + margin: 0; +} + +.settings-header-spacer { + width: 80px; +} + +.settings-content { + flex: 1; + overflow-y: auto; + padding: 32px 24px; + max-width: 720px; + margin: 0 auto; + width: 100%; +} + +.settings-section { + margin-bottom: 40px; +} + +.settings-section-title { + font-size: 1rem; + font-weight: 600; + margin: 0 0 6px; +} + +.settings-section-desc { + font-size: 0.85rem; + color: var(--text-secondary); + margin: 0 0 20px; } .roots-list { display: flex; flex-direction: column; - gap: 8px; - max-height: 240px; - overflow-y: auto; + gap: 10px; } .roots-item {