From 001cadcbe75df9ee9c8f832bbe599f7a1b907db6 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Tue, 3 Feb 2026 11:17:40 -0600 Subject: [PATCH] refactor(settings): move Remote Control to end, make collapsible - Move Remote Control section to end of Settings (after Updates) - Make section collapsible, closed by default - Keep Experimental badge visible when collapsed - Update nav sidebar order to reflect new position - Remove unused .section-title-row CSS selectors --- src/lib/components/views/SettingsView.svelte | 160 ++++++++++--------- 1 file changed, 85 insertions(+), 75 deletions(-) diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index e0f3884b6..e787d624e 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -227,8 +227,8 @@ { id: 'library', labelKey: 'settings.library.title' }, { id: 'content-filtering', labelKey: 'settings.contentFiltering.title' }, { id: 'integrations', labelKey: 'settings.integrations.title' }, - { id: 'remote-control', labelKey: 'settings.integrations.remoteControl' }, { id: 'updates', labelKey: 'nav.updates' }, + { id: 'remote-control', labelKey: 'settings.integrations.remoteControl' }, { id: 'storage', labelKey: 'settings.storage.title' }, ]; @@ -647,6 +647,7 @@ let remoteControlQrData = $state(''); let remoteControlUrl = $state(''); let showRemoteControlGuide = $state(false); + let remoteControlCollapsed = $state(true); // Load saved settings on mount onMount(() => { @@ -2820,11 +2821,79 @@ - -
-
+ +
+

{$t('settings.updates.title')}

+ +
+
+ {$t('settings.updates.checkOnLaunch')} +
+ +
+ +
+
+ {$t('settings.updates.checkNow')} +
+ +
+ +
+
+ {$t('settings.updates.showWhatsNew')} +
+ +
+ +
+
+ {$t('settings.updates.showChangelog')} + {#if updatesCurrentVersion} + {$t('settings.updates.currentVersion', { values: { version: updatesCurrentVersion } })} + {/if} +
+ +
+
+ + +
+ + {#if !remoteControlCollapsed} +
@@ -2972,66 +3041,7 @@
{/if} -
- - -
-

{$t('settings.updates.title')}

- -
-
- {$t('settings.updates.checkOnLaunch')} -
- -
- -
-
- {$t('settings.updates.checkNow')} -
- -
- -
-
- {$t('settings.updates.showWhatsNew')} -
- -
- -
-
- {$t('settings.updates.showChangelog')} - {#if updatesCurrentVersion} - {$t('settings.updates.currentVersion', { values: { version: updatesCurrentVersion } })} - {/if} -
- -
+ {/if}
{#if isUpdateResultOpen} @@ -3539,17 +3549,6 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz margin-bottom: 16px; } - .section-title-row { - display: flex; - align-items: center; - gap: 12px; - margin-bottom: 16px; - } - - .section-title-row .section-title { - margin-bottom: 0; - } - .experimental-badge { font-size: 10px; font-weight: 600; @@ -3710,6 +3709,17 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz color: var(--text-primary); } + .collapsible-section .section-title-btn .experimental-badge { + flex-shrink: 0; + margin-left: -4px; + } + + .section-header-actions { + display: flex; + gap: 8px; + margin-bottom: 16px; + } + .setting-row { display: flex; align-items: center;