mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
UI fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user