feat(manager): Settings full width with its cards in columns, tabs that wrap instead of hiding

Owner 2026-11-23 (plan 6F.0): Settings was the only 880 px page and its 11 tabs scrolled out of
sight ('Operatio...'). Now full width like every page; each tab's cards sit in the new @xenia/ui
<Columns> (cards flow down then across, 34rem columns: two on 1080p, three on an ultrawide, one on a
laptop), settings rows keep switches at the right edge. Tabs everywhere wrap onto another row when
they don't fit. manager_layout e2e: Settings tabs, a 1366x768 screen, every tab visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 06:24:44 +02:00
co-authored by Claude Opus 5.5
parent cd8218689c
commit 33a5125abc
15 changed files with 73 additions and 37 deletions
+7 -2
View File
@@ -409,6 +409,11 @@
.x-page--fit .x-page__body > * { flex-shrink: 0; }
.x-page--fit .x-page__body > .x-page__fill { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
}
/* cards in columns (6F.0): settings and forms on a full-width page */
.x-columns { columns: var(--x-columns-min, 34rem); column-gap: var(--x-page-gap); }
.x-columns > * { break-inside: avoid; margin-bottom: var(--x-page-gap); }
.x-columns > *:last-child { margin-bottom: 0; }
.x-columns > .x-columns__wide { column-span: all; }
.x-page-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--x-space-3); }
.x-page-header__titles { flex: 1; min-width: 0; }
.x-page-header__title { margin: 0; display: flex; align-items: center; gap: var(--x-space-1); font-size: var(--x-text-title); line-height: var(--x-leading-title); font-weight: var(--x-weight-semibold); color: var(--x-ink); }
@@ -641,8 +646,8 @@
/* ── Tabs ────────────────────────────────────────────────────────────────── */
.x-tabs { display: flex; align-items: center; gap: var(--x-space-2); box-shadow: inset 0 calc(-1 * var(--x-border-width)) 0 var(--x-line); }
.x-page__top .x-tabs { box-shadow: none; }
.x-tabs__list { flex: 1; min-width: 0; display: flex; gap: var(--x-space-1); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.x-tabs__list::-webkit-scrollbar { display: none; }
/* tabs that don't fit wrap onto another row: never hidden in a sideways scroll (6F.0, 2026-11-23) */
.x-tabs__list { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--x-space-1); }
.x-tabs__tab {
display: inline-flex; align-items: center; gap: var(--x-space-1-5); flex-shrink: 0;
padding: var(--x-space-2-5) var(--x-space-3); border: 0; background: transparent;
+1 -1
View File
@@ -67,7 +67,7 @@ export function Segmented({ options = [], value, onChange, size = 'md', fill = f
}
/**
* Tabs with an underline: a page's or a dialog's sections. Scrolls sideways when they don't fit,
* Tabs with an underline: a page's or a dialog's sections. Tabs that don't fit wrap onto another row (6F.0),
* never up and down. tabs: [{ id, label, badge?, warn?, testId? }].
* <Tabs tabs={tabs} value={tab} onChange={setTab} />
* end: an element at the right end of the strip (a refresh button…).
+18
View File
@@ -75,3 +75,21 @@ export function Pane({ header, footer, sunken = false, as: Tag = 'section', clas
</Tag>
)
}
/**
* Cards in columns (2026-11-23, plan 6F.0): a full-width page of settings or forms keeps each card
* at a readable width. Cards flow top to bottom, then into the next column; a column is at least
* `min` wide (default 34rem), so a 1080p screen shows two, an ultrawide three, a phone one.
* A child with `x-columns__wide` (or wrapped in <ColumnsWide>) spans every column (a header row,
* a wide table).
* <Columns testId="settings-operation"><SettingsCard …/><SettingsCard …/></Columns>
*/
export function Columns({ min, className, testId, style, children, ...rest }) {
return (
<div className={cx('x-columns', className)} data-testid={testId}
style={min ? { ...style, '--x-columns-min': min } : style} {...rest}>{children}</div>
)
}
export function ColumnsWide({ className, children, ...rest }) {
return <div className={cx('x-columns__wide', className)} {...rest}>{children}</div>
}
+1 -1
View File
@@ -31,7 +31,7 @@ export { Slider } from './components/Slider.jsx'
export { NumberInput } from './components/NumberInput.jsx'
export { Notice } from './components/Notice.jsx'
export { IconPicker } from './components/IconPicker.jsx'
export { Page, PageHeader, Pane, Toolbar, ToolbarSpacer } from './components/Page.jsx'
export { Columns, ColumnsWide, Page, PageHeader, Pane, Toolbar, ToolbarSpacer } from './components/Page.jsx'
export { SearchInput, FilterChip, Segmented, Tabs } from './components/Controls.jsx'
export { Switch } from './components/Switch.jsx'
export { Stepper } from './components/Stepper.jsx'