Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/app/admin/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AdminNav from "../components/admin/AdminNav";
*/
export default function AdminLayout({ children }: { children: React.ReactNode }) {
return (
<main className="staff-panel relative mx-auto flex min-h-[calc(100dvh-var(--tfmc-header-h))] w-full max-w-[110rem] flex-col px-4 pb-6 sm:px-6">
<main className="relative mx-auto flex min-h-[calc(100dvh-var(--tfmc-header-h))] w-full max-w-[110rem] flex-col px-4 pb-6 sm:px-6">
{/* Opaque and pinned under the site header on wider screens, so the tabs stay in reach down a long list. */}
<header className="z-30 -mx-4 bg-[var(--tfmc-forest-deep)] px-4 pt-6 sm:-mx-6 sm:px-6 md:sticky md:top-[var(--tfmc-header-h)]">
<div className="mx-auto flex max-w-[72rem] flex-wrap items-end gap-x-8 gap-y-1 border-b border-[color-mix(in_srgb,var(--tfmc-cream)_14%,transparent)]">
Expand Down
7 changes: 4 additions & 3 deletions frontend/app/internal/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@
color: var(--tfmc-cream);
}

/* Staff pages keep the scrollbar's room even when nothing scrolls, so the
frame does not shift sideways as a list loads or a tab changes length. */
html:has(.staff-panel) {
/* Pages keep the scrollbar's room even when nothing scrolls, so the layout
does not shift sideways as a page grows past the screen. The full-screen
map never scrolls, so it gets the whole width. */
html:not(.map-fullscreen) {
scrollbar-gutter: stable;
}

Expand Down
Loading