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:
@@ -10,7 +10,7 @@ import { Lock, LockOpen, QrCode as QrIcon, RefreshCw } from 'lucide-react'
|
||||
import { useAccess } from '@xenia/access'
|
||||
import { errorMessage } from '@xenia/api'
|
||||
import { useFormat, useTranslation } from '@xenia/i18n'
|
||||
import { Button, Dialog, Input, Spinner } from '@xenia/ui'
|
||||
import { Button, Columns, Dialog, Input, Spinner } from '@xenia/ui'
|
||||
import { QrCode } from '@xenia/ui/qr'
|
||||
import client from '../../../api/client'
|
||||
import { useLiveQuery } from '../../../live/useLiveQuery'
|
||||
@@ -43,7 +43,7 @@ export default function SystemSettings() {
|
||||
const counts = ['categories', 'products', 'tables', 'table_groups', 'managers', 'waiters']
|
||||
|
||||
return (
|
||||
<div className="grid gap-5" data-testid="settings-system">
|
||||
<Columns testId="settings-system">
|
||||
<SettingsCard title={t('settings.system.title')}>
|
||||
<SettingRow label={t('settings.system.version')}>
|
||||
<span className="flex flex-wrap items-center gap-2 text-body font-semibold text-ink" data-testid="system-version">
|
||||
@@ -106,7 +106,7 @@ export default function SystemSettings() {
|
||||
</div>
|
||||
</Dialog>
|
||||
)}
|
||||
</div>
|
||||
</Columns>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user