ui: fix always-show-sidebar-on-desktop setting after navigation refactor (#24979)

This commit is contained in:
Pascal
2026-06-25 09:45:55 +02:00
committed by GitHub
parent fdbd6abee2
commit 3e61ea0e2f
2 changed files with 10 additions and 9 deletions
-8
View File
@@ -33,8 +33,6 @@
import { SETTINGS_KEYS } from '$lib/constants';
let { children } = $props();
let alwaysShowSidebarOnDesktop = $derived(config().alwaysShowSidebarOnDesktop);
let isDesktop = $derived(!isMobile.current);
let innerHeight = $state<number | undefined>();
let innerWidth = $state(browser ? window.innerWidth : 0);
@@ -164,12 +162,6 @@
updateFavicon();
});
$effect(() => {
if (alwaysShowSidebarOnDesktop && isDesktop) {
return;
}
});
// Initialize server properties on app load (run once)
$effect(() => {
// Only fetch if we don't already have props