Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 7566939b4a024c28f0e48a50bc3532f4c4a76bc6
parent 05348da09cf3062fe9d66e749c4fef9dc90ca003
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 16 Oct 2026 16:27:18 -0400

umtool: the rail on a narrow window is two compact rows — the wordmark, + Create and the theme, then the places in one line (scrolling sideways when narrower still, the lit place underlined); Jump, Pinned, Running and a tool's sub-list are not drawn there. The narrow rules move to the utilities layer: the rail's Tailwind utilities beat the components layer, so Jump was never hidden and the places stacked

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/app/globals.css | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
Mumtool/components/shell/AppRail.tsx | 4++--
2 files changed, 71 insertions(+), 4 deletions(-)

diff --git a/umtool/app/globals.css b/umtool/app/globals.css @@ -436,8 +436,9 @@ canvas.grabbable { border-right: 1px solid var(--seam); } - /* Below a laptop the rail stops being a column and becomes the top strip, so - a narrow window keeps every place without a horizontal scroll. */ + /* Below a laptop the rail stops being a column and becomes the top strip + (two compact rows; the rules that must beat the rail's Tailwind utilities + are in the utilities layer, "the narrow strip", below). */ @media (max-width: 760px) { body:has(.app-rail) { padding-left: 0; @@ -774,7 +775,73 @@ canvas.grabbable { type into. A control's edge is seam-2 (the canvas's .btn), whatever its class says. In the utilities layer, element + attribute, so it beats the bare border utility and loses to every hover/focus/state variant. */ +/* ── the narrow strip (≤ 760 px): the rail as two compact rows ── + Row 1: the wordmark, + Create and the theme (pushed right). Row 2: the places + in one line, scrolling sideways when the window is narrower still, the place + you are in underlined (the lit edge turned on its side). Jump, Pinned and + Running are not drawn here, nor a tool's sub-list (Tools is one click away). + In the UTILITIES layer, more specific than a class: the rail's elements carry + Tailwind utilities (flex, grid, margins), which beat the components layer. */ @layer utilities { + @media (max-width: 760px) { + .app-rail { + flex-wrap: wrap; + gap: 0 6px; + padding: 6px 8px 0; + } + .app-rail [data-rail-home] { + order: 0; + padding: 6px 6px; + } + .app-rail [data-rail-create] { + order: 1; + margin: 0; + padding: 4px 10px; + } + .app-rail [data-rail-section="theme"] { + order: 2; + margin-left: auto; + padding: 0; + } + .app-rail [data-rail-section="jump"], + .app-rail [data-rail-section="pins"], + .app-rail [data-rail-section="running"], + .app-rail .app-sub { + display: none; + } + .app-rail .app-places { + order: 3; + flex: 1 0 100%; + display: flex; + flex-wrap: nowrap; + gap: 2px; + margin-top: 4px; + padding: 0; + overflow-x: auto; + scrollbar-width: none; + } + .app-rail .app-places > a, + .app-rail .app-places > [data-nav-group] > button { + width: auto; + flex: none; + white-space: nowrap; + padding: 7px 10px 9px; + border-radius: 3px 3px 0 0; + } + .app-rail .app-places .rail-n { + margin-left: 6px; + } + .app-rail .app-places > a[aria-current]::before, + .app-rail .app-places > [data-nav-group] > button[aria-current="page"]::before { + top: auto; + bottom: 0; + left: 8px; + right: 8px; + width: auto; + height: 2px; + } + } + /* The ONE primary action of a list line (canvas `.ln .act .btn.go`): an outline at rest, filled Signal on the lit line only -- Signal is the lit line's and the one primary action's, never every row's. In the utilities diff --git a/umtool/components/shell/AppRail.tsx b/umtool/components/shell/AppRail.tsx @@ -32,7 +32,7 @@ export default async function AppRail({ active }: { active: string }) { const theme = parseTheme((await cookies()).get(THEME_COOKIE)?.value); return ( <div className="app-rail" data-app-rail=""> - <Link href={homeHref()} prefetch={false} aria-label="umtool home" className="flex items-center gap-[9px] px-4 pb-3.5 pt-4 no-underline"> + <Link href={homeHref()} prefetch={false} aria-label="umtool home" data-rail-home="" className="flex items-center gap-[9px] px-4 pb-3.5 pt-4 no-underline"> <Mark /> <Wordmark /> </Link> @@ -50,7 +50,7 @@ export default async function AppRail({ active }: { active: string }) { <RunningList initial={initialRunning()} /> - <div className="px-4 pb-4 pt-3"> + <div data-rail-section="theme" className="px-4 pb-4 pt-3"> <ThemeControl initial={theme} /> </div> </div>