Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa439d7c7b | |||
| affa32cbaa |
@@ -53,7 +53,13 @@ export function AppHeader() {
|
|||||||
aria-label={t("Sidebar toggle")}
|
aria-label={t("Sidebar toggle")}
|
||||||
opened={mobileOpened}
|
opened={mobileOpened}
|
||||||
onClick={toggleMobile}
|
onClick={toggleMobile}
|
||||||
hiddenFrom="sm"
|
// Must match the AppShell navbar breakpoint (md). The navbar
|
||||||
|
// collapses to the MOBILE drawer below md, so the mobile toggle
|
||||||
|
// (which flips mobileOpened) must be the one visible across the
|
||||||
|
// whole <md band — otherwise at 768-991 the desktop toggle showed
|
||||||
|
// but flipped the wrong atom, leaving the drawer unopenable (the
|
||||||
|
// regression from the initial sm->md navbar change).
|
||||||
|
hiddenFrom="md"
|
||||||
size="sm"
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -63,7 +69,7 @@ export function AppHeader() {
|
|||||||
aria-label={t("Sidebar toggle")}
|
aria-label={t("Sidebar toggle")}
|
||||||
opened={desktopOpened}
|
opened={desktopOpened}
|
||||||
onClick={toggleDesktop}
|
onClick={toggleDesktop}
|
||||||
visibleFrom="sm"
|
visibleFrom="md"
|
||||||
size="sm"
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
@@ -88,7 +88,13 @@ export default function GlobalAppShell({
|
|||||||
header={{ height: 45 }}
|
header={{ height: 45 }}
|
||||||
navbar={{
|
navbar={{
|
||||||
width: isSpaceRoute ? sidebarWidth : 300,
|
width: isSpaceRoute ? sidebarWidth : 300,
|
||||||
breakpoint: "sm",
|
// `md` (not `sm`): below 992px the fixed ~300px sidebar leaves too little
|
||||||
|
// room for content — the settings tables (Members/…) overflow the offset
|
||||||
|
// content area on tablet (~768px) and clip the Role/actions columns
|
||||||
|
// off-screen with no horizontal scroll. Collapsing the navbar to a toggle
|
||||||
|
// drawer across the whole tablet band frees the full width for content
|
||||||
|
// (the mobile drawer is closed by default, so nothing overlaps on load).
|
||||||
|
breakpoint: "md",
|
||||||
collapsed: {
|
collapsed: {
|
||||||
mobile: !mobileOpened,
|
mobile: !mobileOpened,
|
||||||
desktop: !desktopOpened,
|
desktop: !desktopOpened,
|
||||||
@@ -97,7 +103,7 @@ export default function GlobalAppShell({
|
|||||||
aside={
|
aside={
|
||||||
isPageRoute && {
|
isPageRoute && {
|
||||||
width: 420,
|
width: 420,
|
||||||
breakpoint: "sm",
|
breakpoint: "md",
|
||||||
collapsed: { mobile: !isAsideOpen, desktop: !isAsideOpen },
|
collapsed: { mobile: !isAsideOpen, desktop: !isAsideOpen },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user