This commit is contained in:
estifanos
2026-08-19 10:22:00 +00:00
parent 4121e2a8b1
commit 0fa5566432
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import {
Tooltip,
UnstyledButton,
rem,
useMantineColorScheme,
useComputedColorScheme,
} from '@mantine/core';
import { useMediaQuery } from '@mantine/hooks';
import {
@@ -285,7 +285,7 @@ export function AppSidebar({
brandLogo,
}: AppSidebarProps) {
const { t } = useTranslation();
const { colorScheme } = useMantineColorScheme();
const colorScheme = useComputedColorScheme('light', { getInitialValueInEffect: true });
// The icon-rail toggle is a desktop-only affordance (its button is
// `visibleFrom="sm"`) — on mobile the sidebar renders in a full-width
// drawer, so a `collapsed` state carried over from a prior desktop session