Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(frontend): align view preference controls

Pulse Teste5f46a532f08
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 93d09186b7..07ba19d579 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -44,14 +44,14 @@ history, and must not discard the saved note.
Platform-owned workload controls extend the shared `WorkloadsFilter` view
options rather than creating page-local toolbar shells. Persistent presentation
-choices compose the shared `ViewOptionsMenu` instead of occupying the primary
-filter rail: layout, metric style, chart visibility, memory basis, and columns
-remain discoverable behind one `View` trigger, while the trend range may stay
-inline only when trends are active because it is the frequent analytical
-control. That inline range must carry a visible contextual label. Controls
-inside the scrolling View panel must expand as inline disclosures rather than
-opening nested absolute panels that can clip or create competing overlay
-stacks. The Proxmox page owns and persists the `Guest` / `Host` memory basis;
+choices compose the shared `ViewOptionsDisclosure` instead of occupying the
+primary filter rail: layout, metric style, chart visibility, memory basis, and
+columns remain discoverable behind one `View` trigger, while the trend range
+may stay inline only when trends are active because it is the frequent
+analytical control. That inline range must carry a visible contextual label.
+Controls inside the View disclosure must expand in place rather than opening
+nested absolute panels that can clip or create competing overlay stacks. The
+Proxmox page owns and persists the `Guest` / `Host` memory basis;
the workload state, table, panel, and row contracts carry the selected basis
and resolved parent-node data to the canonical memory bar, and the memory
column header must expose the non-default Host basis after the control closes.
@@ -1134,14 +1134,22 @@ not a replacement status card, CTA band, or page-local nested card.
1. Add shared primitives in `frontend-modern/src/components/shared/`
Filterable table surfaces that separate high-frequency narrowing from
durable presentation preferences must compose
- `frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx`.
- The shared menu owns trigger, panel, outside-click, Escape, focus-return,
- remembered-preference explanation, and viewport-safe geometry; feature
- surfaces own the controls placed inside it. They must not restore a row of
- equally prominent preference toggles or a page-local popover shell. The
- panel must anchor into the viewport from the trigger's leading edge when the
- filter rail wraps, so a left-edge View trigger cannot push a right-aligned
- panel off-screen.
+ `frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.tsx`.
+ The shared disclosure owns trigger, expanded state, Escape focus-return,
+ remembered-preference explanation, and responsive option-grid geometry;
+ feature surfaces own the controls placed inside it. They must not restore a
+ row of equally prominent preference toggles or a page-local popover shell.
+ The disclosure renders in normal flow beneath the filter rows so durable
+ settings push the affected table down instead of covering it. Its option
+ grid uses compact, equal-width tracks that wrap from one column on phones to
+ as many columns as the available desktop width supports. Floating,
+ viewport-docked, and nested overlay implementations are forbidden for this
+ persistent settings surface. Every option control fills its compact grid
+ track, uses the shared control height, and divides segmented choices evenly;
+ content-sized toggle islands with mismatched footprints are forbidden. An
+ inline Columns picker expands as a full-width row below the compact controls
+ and flows its checkboxes into responsive columns, so its option list becomes
+ neither a narrow nested panel nor a tall single-column desktop list.
Standard command buttons and button-styled route actions belong to the
shared `Button` primitive family. Feature pages may choose the action label,
icon, route, click handler, and contextual layout, but secondary/primary/
@@ -4608,18 +4616,18 @@ value, defaultValue, group); `FilterBar` renders chips for active filters and
exposes the rest behind a "+ Filter" menu, with type-ahead at both the menu
and chip popovers (`AddFilterMenu` and `FilterChip`). Low-frequency view options
(grouping segmented control, charts toggle, columns picker, sort key) compose
-the shared `ViewOptionsMenu` through `FilterBar`'s `viewOptions` prop instead of
-remaining as permanent toolbar controls. `FilterBar` owns the View trigger and
-popover; feature consumers pass only panel content and must not import or render
-`ViewOptionsMenu` themselves. Consumers with no currently applicable
-presentation choice must omit `viewOptions` rather than passing an empty
-conditional wrapper that leaves a dead View trigger. Contextual frequent actions may use
-`leadingControls`, while table counters, active trend ranges, and other
-persistent orientation readouts may use `trailingControls`. Platform tables
-inherit the same ownership through `PlatformTableToolbar`. Recovery is event-first
-and does not use equal workspace subtabs for protected rollups versus event
-history; Storage subtabs (Pools / Physical Disks) sit above the bar as
-navigation, not filters.
+the shared `ViewOptionsDisclosure` through `FilterBar`'s `viewOptions` prop
+instead of remaining as permanent toolbar controls. `FilterBar` owns the View
+trigger and inline disclosure; feature consumers pass only panel content and
+must not import or render `ViewOptionsDisclosure` themselves. Consumers with
+no currently applicable presentation choice must omit `viewOptions` rather
+than passing an empty conditional wrapper that leaves a dead View trigger.
+Contextual frequent actions may use `leadingControls`, while table counters,
+active trend ranges, and other persistent orientation readouts may use
+`trailingControls`. Platform tables inherit the same ownership through
+`PlatformTableToolbar`. Recovery is event-first and does not use equal
+workspace subtabs for protected rollups versus event history; Storage subtabs
+(Pools / Physical Disks) sit above the bar as navigation, not filters.
`FilterBar` owns committed infrastructure search terms as removable pills,
separate from its consumer-owned structured `FilterDef` chips. An exact
infrastructure completion or a recognized abbreviated query clears the draft
@@ -6703,10 +6711,8 @@ element ref, because a ref runs before the node is in the document, where the
measured height is zero.
Every surface that must sit on top of the bar reads that property: the
-Assistant overlay panel and its backdrop, the compact post-update notice, the
-global GitHub star banner, and
-the `.filter-bottom-nav-aware-panel` rule in
-`frontend-modern/src/index.css`. Consumers must not add
+Assistant overlay panel and its backdrop, the compact post-update notice, and
+the global GitHub star banner. Consumers must not add
`env(safe-area-inset-bottom)` on top of the published value, and must not
reintroduce a literal bar height. The declared `:root` value is a
pre-measurement fallback only and deliberately under-estimates: reserving more
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index bdc9dc6a39..299d8a4ce8 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -2155,9 +2155,14 @@ Status, dynamic scope, and contextual `Clear filters` actions on
the primary filter rail. Durable presentation choices — grouped/list mode,
bars/trends, chart visibility, Guest/Host memory basis, and Columns — pass
their panel content through `FilterBar.viewOptions` instead of importing or
-wrapping `ViewOptionsMenu` in the workload feature or rendering as equally
-prominent filter toggles. The shared FilterBar owns View composition across
-desktop and mobile layouts, including the mobile action-row placement.
+wrapping `ViewOptionsDisclosure` in the workload feature or rendering as
+equally prominent filter toggles. The shared FilterBar owns the inline View
+disclosure across desktop and mobile layouts, including the mobile action-row
+placement. Its compact desktop tracks use one shared width and control height,
+wrap without stretching to fill the toolbar, and become one full-width column
+on phones. Segmented choices divide their track evenly; the Guest/Host memory
+basis keeps its visible labels concise so it does not widen the hot toolbar
+path.
Contextual Clear, leading actions, and View stay in
one non-breaking mobile action cluster; trailing analytical controls and result
counts wrap independently so a narrow toolbar cannot strand View on a line by
@@ -2168,9 +2173,10 @@ scope editing keeps Add filter beside the chips. The sparkline range remains
inline only while trends are active because it is the frequently changed
analytical window, and its compact control must include a visible `Trend range`
label so the values are not an orphaned set of durations. Columns must expand
-inside the scrolling View surface instead of opening a nested absolute panel
-that can be clipped by the menu boundary. On Proxmox, the non-default Host basis must remain visible
-in the workload memory column header after the View menu closes. Workload chart
+as a full-width responsive checkbox row inside the View disclosure instead of
+opening a nested absolute panel or a tall single-column desktop list. On
+Proxmox, the non-default Host basis must remain visible in the workload memory
+column header after the View disclosure closes. Workload chart
visibility remains a display preference: its menu action must expose explicit
`Show charts` / `Hide charts` pressed state, and hiding charts must remove the
summary section rather than leaving an empty collapsed summary band on screen.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 9108a19cc1..c04764eb6d 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,35 +1,43 @@
{
"version": 1,
- "base_sha": "99d4c4e8d44b2fb39a2f3c7eb0009eb1e8d126c0",
- "verified_at": "2026-08-28T08:51:48Z",
+ "base_sha": "973944d8c048362dac2e1d82431c3280bc7fe615",
+ "verified_at": "2026-08-28T09:46:30Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Storage/DiskDetail.tsx",
- "frontend-modern/src/components/shared/HistoryChart.tsx",
- "frontend-modern/src/components/shared/HistoryChartHoverGroup.tsx",
- "frontend-modern/src/components/shared/useHistoryChartState.ts"
+ "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx",
+ "frontend-modern/src/components/shared/ColumnPicker.tsx",
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",
+ "frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.tsx",
+ "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx",
+ "frontend-modern/src/components/shared/FilterToolbar.tsx",
+ "frontend-modern/src/index.css"
],
"content_sha256": {
- "frontend-modern/src/components/Storage/DiskDetail.tsx": "fd604363e37ffd95e2bbfdfb82b36fa94b3a217e6644c4f9591946e9b41fd217",
- "frontend-modern/src/components/shared/HistoryChart.tsx": "eef6172fbc89bdd9ec0f26ec6b71bb2f6344bd16bd5b0f5c6e32d594235d304d",
- "frontend-modern/src/components/shared/HistoryChartHoverGroup.tsx": "58748fba95a4bb7941a08ff9e41c96e8c870b8f6fff9f9ff9767a795802a1632",
- "frontend-modern/src/components/shared/useHistoryChartState.ts": "8b54e7a48c4635e316ab01410ed07b6ddb308f6ea3f339612bb61ec55947c1d4"
+ "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "4b7aae0fa7c6703baa7eab835e654967ac36ea4793174e721c2fee86c04b0903",
+ "frontend-modern/src/components/shared/ColumnPicker.tsx": "ed6903215456d6f41d69773e63fdb784276702e4389df648d736a801084c7aca",
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "46c6cf55cad94cf9c004c21f2bf5d4a797ad0803196d3f9ca6a2c93b451317db",
+ "frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.tsx": "c4a1f06ed5fc1416919ac808b4d862caa3c3edba5659ddfaae25695fd8c71728",
+ "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx": "deleted",
+ "frontend-modern/src/components/shared/FilterToolbar.tsx": "7b18839d12aba7cef74d934d98658a56bcc26ad46d728f86207d2d0dc25c7dd0",
+ "frontend-modern/src/index.css": "a9db1c5609856e9b9470c6707786b9e52cc2b4b0d9524eabed3f5b39c702a76a"
},
- "routes": ["/proxmox/storage?tab=disks&q=nvme2"],
+ "routes": ["/proxmox/overview"],
"viewports": [
- { "width": 1078, "height": 1234 },
+ { "width": 1440, "height": 900 },
{ "width": 390, "height": 844 }
],
"states": [
- "Proxmox Physical Disks filtered to nvme2 with WD Red Pro 8TB expanded",
- "disk History tab with 30-minute Read, Write, and Busy charts plus selectable-range Temperature history loaded",
- "Read chart hovered with synchronized crosshairs, point markers, and tooltips visible on all three Live I/O charts",
- "pointer moved outside the Live I/O group with all synchronized hover state cleared"
+ "desktop Proxmox overview with View preferences expanded inline above Guests",
+ "desktop compact tray with five equal 176 by 32 pixel controls",
+ "desktop Columns disclosure expanded as a full-width responsive checkbox row",
+ "phone filter drawer with View preferences expanded as one full-width column",
+ "phone Columns disclosure expanded below 44 pixel preference controls"
],
"interactions": [
- "expanded WD Red Pro 8TB and opened its History tab at desktop width",
- "hovered the rebased desktop Read chart and confirmed Read, Write, and Busy show the same 09:34:00 timestamp while Temperature remains independent",
- "repeated the hover at 390px and confirmed the stacked Read, Write, and Busy charts show the same 09:36:57 timestamp without clipped tooltips",
- "moved the pointer outside the chart group and confirmed all grouped tooltips clear together"
+ "opened and closed View preferences from the shared View trigger",
+ "pressed Escape from a preference child and confirmed focus returned to View",
+ "opened Columns at desktop width and confirmed its panel matched the tray width with no horizontal overflow",
+ "opened Filters then View at 390 pixels and confirmed every segmented choice split the available width evenly",
+ "opened Columns at 390 pixels and confirmed its options remained reachable above the mobile navigation"
]
}
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 8070582c1e..5780a00918 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -572,6 +572,12 @@ describe('App architecture', () => {
expect(appStylesSource).toContain('.pulse-shell--full-width');
expect(appStylesSource).toContain('.pulse-wide-data-surface.space-y-3');
expect(appStylesSource).toContain('.filter-bar > div > div:first-child button');
+ expect(appStylesSource).toContain(
+ 'grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 11rem))',
+ );
+ expect(appStylesSource).toContain(".view-options-grid > * [role='group'] > button");
+ expect(appStylesSource).toContain('flex: 1 1 0%');
+ expect(appStylesSource).toContain("button[aria-expanded='true']");
expect(appStylesSource).not.toContain('.proxmox-nodes-card > :first-child');
expect(appStylesSource).toContain(
'.table-fixed.platform-table > tbody > tr:not([data-inline-detail-for])',
@@ -915,7 +921,7 @@ describe('mobile bottom navigation clearance', () => {
it('keeps every consumer reading that property instead of its own copy', () => {
// The Assistant panel, its backdrop, the star banner and both halves of
- // the .filter-bottom-nav-aware-panel rule each carried their own
+ // the former filter-popover docking rule each carried their own
// calc(5rem + env(safe-area-inset-bottom)) for a bar that measures ~45px.
// The overshoot left a band below the Assistant backdrop that was neither
// dimmed nor click-blocked, so page content stayed interactive outside an
diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
index 857c74ca65..e77acd0a3d 100644
--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
@@ -109,7 +109,7 @@ const queryStorageChip = (label: string): HTMLButtonElement | null => {
const openStorageViewOptions = () => {
expect(screen.queryByLabelText('Sort by')).not.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'View' }));
- return screen.getByRole('dialog', { name: 'View preferences' });
+ return screen.getByRole('region', { name: 'View preferences' });
};
const setStorageViewOption = (dialog: HTMLElement, label: string, value: string) => {
diff --git a/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx b/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx
index d162db09d1..da252bf1d1 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx
@@ -360,13 +360,13 @@ export const WorkloadsFilter: Component<WorkloadsFilterProps> = (props) => {
options={[
{
value: 'guest',
- label: 'Guest allocation',
+ label: 'Guest',
ariaLabel: 'Guest',
title: 'Show memory as a percentage of each guest allocation',
},
{
value: 'host',
- label: 'Host capacity',
+ label: 'Host',
ariaLabel: 'Host',
title: 'Show memory as a percentage of the Proxmox host total',
},
diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx
index a79f71bbe3..d4f1c0f3ba 100644
--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx
@@ -84,7 +84,7 @@ const pickFromMenu = (menuItem: string, optionLabel: string) => {
const openViewPreferences = () => {
fireEvent.click(screen.getByRole('button', { name: 'View' }));
- return screen.getByRole('dialog', { name: 'View preferences' });
+ return screen.getByRole('region', { name: 'View preferences' });
};
describe('WorkloadsFilter', () => {
diff --git a/frontend-modern/src/components/shared/ColumnPicker.test.tsx b/frontend-modern/src/components/shared/ColumnPicker.test.tsx
index f54eee20ad..986636a45f 100644
--- a/frontend-modern/src/components/shared/ColumnPicker.test.tsx
+++ b/frontend-modern/src/components/shared/ColumnPicker.test.tsx
@@ -77,6 +77,9 @@ describe('ColumnPicker', () => {
expect(button).toHaveAttribute('aria-expanded', 'true');
expect(await screen.findByText('Show Columns')).toBeInTheDocument();
expect(screen.getByLabelText('Memory')).toBeInTheDocument();
+ expect(screen.getByLabelText('Memory').parentElement?.parentElement).toHaveClass(
+ 'column-picker-inline-options',
+ );
});
it('labels hidden column count with explicit context', () => {
diff --git a/frontend-modern/src/components/shared/ColumnPicker.tsx b/frontend-modern/src/components/shared/ColumnPicker.tsx
index ad09734632..debb655d26 100644
--- a/frontend-modern/src/components/shared/ColumnPicker.tsx
+++ b/frontend-modern/src/components/shared/ColumnPicker.tsx
@@ -59,7 +59,9 @@ export const ColumnPicker: Component<ColumnPickerProps> = (props) => {
</p>
</div>
- <div class="max-h-64 overflow-y-auto py-1">
+ <div
+ class={`max-h-64 overflow-y-auto py-1 ${props.inline ? 'column-picker-inline-options' : ''}`.trim()}
+ >
<For each={props.columns}>
{(column) => (
<label class="flex cursor-pointer items-center gap-2.5 px-3 py-2 transition-colors hover:bg-surface-hover">
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
index 229f3b54cf..7bdb4acd5d 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
@@ -223,7 +223,14 @@ describe('FilterBar', () => {
fireEvent.click(screen.getByRole('button', { name: 'View' }));
- expect(screen.getByRole('dialog', { name: 'View preferences' })).toHaveTextContent('Density');
+ const viewRegion = screen.getByRole('region', { name: 'View preferences' });
+ const actionCluster = screen
+ .getByRole('button', { name: 'View' })
+ .closest('[data-filter-action-cluster]');
+ expect(viewRegion).toHaveTextContent('Density');
+ expect(actionCluster).not.toBeNull();
+ expect(actionCluster).not.toContainElement(viewRegion);
+ expect(viewRegion.closest('.filter-bar')).not.toBeNull();
});
it('reveals the shared View trigger with persistent controls in the expanded mobile rail', () => {
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
index a1145522cc..8b2a4e1124 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
@@ -6,7 +6,11 @@ import { FilterActionButton, FilterMobileToggleButton } from '@/components/share
import { SearchInput } from '@/components/shared/SearchInput';
import { AddFilterMenu } from './AddFilterMenu';
import { FilterChip } from './FilterChip';
-import { ViewOptionsMenu } from './ViewOptionsMenu';
+import {
+ ViewOptionsDisclosurePanel,
+ ViewOptionsDisclosureTrigger,
+ createViewOptionsDisclosureState,
+} from './ViewOptionsDisclosure';
import {
buildFilterSearchSuggestions,
clearFilter,
@@ -80,6 +84,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
const [mobileExpanded, setMobileExpanded] = createSignal(false);
const [searchDraft, setSearchDraft] = createSignal('');
const [searchTerms, setSearchTerms] = createSignal<FilterSearchTerm[]>([]);
+ const viewOptionsDisclosure = createViewOptionsDisclosureState();
let lastAppliedSearch: string | undefined;
const inlineFilters = createMemo<FilterDef[]>(() =>
@@ -209,6 +214,11 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
if (!key) return undefined;
return { storageKey: key, emptyMessage: props.search.emptyMessage };
};
+ const toggleMobileExpanded = () => {
+ const next = !mobileExpanded();
+ if (!next) viewOptionsDisclosure.close();
+ setMobileExpanded(next);
+ };
return (
<Card
@@ -241,10 +251,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
</div>
{props.searchTrailing}
<Show when={props.isMobile()}>
- <FilterMobileToggleButton
- onClick={() => setMobileExpanded((value) => !value)}
- count={activeCount()}
- />
+ <FilterMobileToggleButton onClick={toggleMobileExpanded} count={activeCount()} />
</Show>
</div>
@@ -284,7 +291,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
</Show>
{props.leadingControls}
<Show when={props.viewOptions}>
- <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>
+ <ViewOptionsDisclosureTrigger state={viewOptionsDisclosure} />
</Show>
{props.trailingControls}
</div>
@@ -341,7 +348,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
</Show>
{props.leadingControls}
<Show when={props.viewOptions}>
- <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>
+ <ViewOptionsDisclosureTrigger state={viewOptionsDisclosure} />
</Show>
</div>
<Show when={props.trailingControls}>
@@ -351,6 +358,11 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
</Show>
</div>
</Show>
+ <Show when={props.viewOptions}>
+ <ViewOptionsDisclosurePanel state={viewOptionsDisclosure}>
+ {props.viewOptions}
+ </ViewOptionsDisclosurePanel>
+ </Show>
</div>
</Card>
);
diff --git a/frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.test.tsx b/frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.test.tsx
new file mode 100644
index 0000000000..a8ab2f677f
--- /dev/null
+++ b/frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.test.tsx
@@ -0,0 +1,58 @@
+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
+import { afterEach, describe, expect, it } from 'vitest';
+
+import {
+ ViewOptionsDisclosurePanel,
+ ViewOptionsDisclosureTrigger,
+ createViewOptionsDisclosureState,
+} from './ViewOptionsDisclosure';
+
+afterEach(cleanup);
+
+const TestDisclosure = () => {
+ const state = createViewOptionsDisclosureState();
+ return (
+ <>
+ <ViewOptionsDisclosureTrigger state={state} />
+ <ViewOptionsDisclosurePanel state={state}>
+ <button type="button">Grouped</button>
+ </ViewOptionsDisclosurePanel>
+ </>
+ );
+};
+
+describe('ViewOptionsDisclosure', () => {
+ it('reveals persistent presentation controls as an inline region', () => {
+ render(() => <TestDisclosure />);
+
+ const trigger = screen.getByRole('button', { name: 'View' });
+ expect(screen.queryByRole('region', { name: 'View preferences' })).not.toBeInTheDocument();
+ expect(trigger).not.toHaveAttribute('aria-haspopup');
+
+ fireEvent.click(trigger);
+
+ const region = screen.getByRole('region', { name: 'View preferences' });
+ expect(region).toHaveClass('border', 'bg-surface-alt/40');
+ expect(region).not.toHaveClass('absolute', 'fixed', 'shadow-lg');
+ expect(region.firstElementChild?.nextElementSibling).toHaveClass('view-options-grid', 'grid');
+ expect(screen.getByRole('button', { name: 'Grouped' })).toBeInTheDocument();
+ expect(trigger).toHaveAttribute('aria-expanded', 'true');
+
+ fireEvent.click(trigger);
+ expect(screen.queryByRole('region', { name: 'View preferences' })).not.toBeInTheDocument();
+ });
+
+ it('collapses on Escape and restores focus to the trigger', async () => {
+ render(() => <TestDisclosure />);
+ const trigger = screen.getByRole('button', { name: 'View' });
+
+ fireEvent.click(trigger);
+ const grouped = screen.getByRole('button', { name: 'Grouped' });
+ grouped.focus();
+ fireEvent.keyDown(grouped, { key: 'Escape' });
+ await Promise.resolve();
+
+ expect(screen.queryByRole('region', { name: 'View preferences' })).not.toBeInTheDocument();
+ expect(trigger).toHaveFocus();
+ });
+});
diff --git a/frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.tsx b/frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.tsx
new file mode 100644
index 0000000000..78b86cacf4
--- /dev/null
+++ b/frontend-modern/src/components/shared/FilterBar/ViewOptionsDisclosure.tsx
@@ -0,0 +1,96 @@
+import {
+ type Accessor,
+ type Component,
+ type JSX,
+ Show,
+ createSignal,
+ createUniqueId,
+} from 'solid-js';
+import SlidersHorizontalIcon from 'lucide-solid/icons/sliders-horizontal';
+
+import { FilterPopoverTrigger } from '@/components/shared/FilterToolbar';
+
+export interface ViewOptionsDisclosureState {
+ close: (restoreFocus?: boolean) => void;
+ open: Accessor<boolean>;
+ panelId: string;
+ titleId: string;
+ toggle: (trigger: HTMLButtonElement) => void;
+}
+
+export function createViewOptionsDisclosureState(): ViewOptionsDisclosureState {
+ const [open, setOpen] = createSignal(false);
+ const panelId = createUniqueId();
+ const titleId = `${panelId}-title`;
+ let triggerRef: HTMLButtonElement | undefined;
+
+ const close = (restoreFocus = false) => {
+ setOpen(false);
+ if (restoreFocus) queueMicrotask(() => triggerRef?.focus());
+ };
+
+ return {
+ close,
+ open,
+ panelId,
+ titleId,
+ toggle: (trigger) => {
+ triggerRef = trigger;
+ setOpen((value) => !value);
+ },
+ };
+}
+
+export const ViewOptionsDisclosureTrigger: Component<{
+ state: ViewOptionsDisclosureState;
+}> = (props) => (
+ <FilterPopoverTrigger
+ open={props.state.open()}
+ onClick={(event) => props.state.toggle(event.currentTarget)}
+ onKeyDown={(event) => {
+ if (event.key !== 'Escape' || !props.state.open()) return;
+ event.preventDefault();
+ props.state.close(true);
+ }}
+ aria-expanded={props.state.open()}
+ aria-controls={props.state.panelId}
+ title="Show or hide table presentation settings"
+ >
+ <SlidersHorizontalIcon class="h-3.5 w-3.5" aria-hidden="true" />
+ View
+ </FilterPopoverTrigger>
+);
+
+interface ViewOptionsDisclosurePanelProps {
+ children: JSX.Element;
+ state: ViewOptionsDisclosureState;
+ label?: string;
+ description?: string;
+}
+
+export const ViewOptionsDisclosurePanel: Component<ViewOptionsDisclosurePanelProps> = (props) => (
+ <Show when={props.state.open()}>
+ <section
+ id={props.state.panelId}
+ role="region"
+ aria-label={props.label ?? 'View preferences'}
+ aria-labelledby={props.state.titleId}
+ onKeyDown={(event) => {
+ if (event.key !== 'Escape') return;
+ event.preventDefault();
+ props.state.close(true);
+ }}
+ class="rounded-md border border-border-subtle bg-surface-alt/40 p-3"
+ >
+ <div class="mb-3 border-b border-border-subtle pb-2">
+ <div id={props.state.titleId} class="text-xs font-medium text-base-content">
+ {props.label ?? 'View preferences'}
+ </div>
+ <div class="mt-0.5 text-[11px] leading-4 text-muted">
+ {props.description ?? 'These choices are remembered for future visits.'}
+ </div>
+ </div>
+ <div class="view-options-grid grid items-start gap-3">{props.children}</div>
+ </section>
+ </Show>
+);
diff --git a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsx b/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsx
deleted file mode 100644
index 0f84a4aa6d..0000000000
--- a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
-import { afterEach, describe, expect, it } from 'vitest';
-
-import { ViewOptionsMenu } from './ViewOptionsMenu';
-
-afterEach(cleanup);
-
-describe('ViewOptionsMenu', () => {
- it('keeps persistent presentation controls behind one View trigger', () => {
- render(() => (
- <ViewOptionsMenu>
- <button type="button">Grouped</button>
- </ViewOptionsMenu>
- ));
-
- expect(screen.queryByRole('dialog', { name: 'View preferences' })).not.toBeInTheDocument();
-
- fireEvent.click(screen.getByRole('button', { name: 'View' }));
-
- expect(screen.getByRole('dialog', { name: 'View preferences' })).toBeInTheDocument();
- expect(screen.getByRole('dialog', { name: 'View preferences' })).toHaveClass(
- 'filter-bottom-nav-aware-panel',
- );
- expect(screen.getByRole('button', { name: 'View' }).parentElement).toHaveClass(
- 'static',
- 'ml-auto',
- 'sm:relative',
- 'sm:ml-0',
- );
- expect(screen.getByRole('button', { name: 'Grouped' })).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'View' })).toHaveAttribute('aria-expanded', 'true');
- });
-
- it('closes on Escape and restores focus to the trigger', async () => {
- render(() => <ViewOptionsMenu>Preferences</ViewOptionsMenu>);
- const trigger = screen.getByRole('button', { name: 'View' });
-
- fireEvent.click(trigger);
- fireEvent.keyDown(document, { key: 'Escape' });
- await Promise.resolve();
-
- expect(screen.queryByRole('dialog', { name: 'View preferences' })).not.toBeInTheDocument();
- expect(trigger).toHaveFocus();
- });
-
- it('closes when focus moves to an outside pointer target', () => {
- render(() => (
- <>
- <ViewOptionsMenu>Preferences</ViewOptionsMenu>
- <button type="button">Outside</button>
- </>
- ));
-
- fireEvent.click(screen.getByRole('button', { name: 'View' }));
- fireEvent.mouseDown(screen.getByRole('button', { name: 'Outside' }));
-
- expect(screen.queryByRole('dialog', { name: 'View preferences' })).not.toBeInTheDocument();
- });
-});
diff --git a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx b/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx
deleted file mode 100644
index cb310de0c7..0000000000
--- a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-import {
- type Component,
- type JSX,
- Show,
- createEffect,
- createSignal,
- createUniqueId,
- onCleanup,
-} from 'solid-js';
-import SlidersHorizontalIcon from 'lucide-solid/icons/sliders-horizontal';
-
-import {
- FilterPopoverTrigger,
- FilterToolbarPanel,
- filterBottomNavAwarePanelClass,
-} from '@/components/shared/FilterToolbar';
-
-interface ViewOptionsMenuProps {
- children: JSX.Element;
- label?: string;
- description?: string;
-}
-
-export const ViewOptionsMenu: Component<ViewOptionsMenuProps> = (props) => {
- const [open, setOpen] = createSignal(false);
- const panelId = createUniqueId();
- let containerRef: HTMLDivElement | undefined;
- let triggerRef: HTMLButtonElement | undefined;
-
- const close = (restoreFocus = false) => {
- setOpen(false);
- if (restoreFocus) queueMicrotask(() => triggerRef?.focus());
- };
-
- createEffect(() => {
- if (!open()) return;
-
- const handlePointerDown = (event: MouseEvent) => {
- if (containerRef && !containerRef.contains(event.target as Node)) close();
- };
- const handleKeyDown = (event: KeyboardEvent) => {
- if (event.key !== 'Escape') return;
- event.preventDefault();
- close(true);
- };
-
- document.addEventListener('mousedown', handlePointerDown);
- document.addEventListener('keydown', handleKeyDown);
- onCleanup(() => {
- document.removeEventListener('mousedown', handlePointerDown);
- document.removeEventListener('keydown', handleKeyDown);
- });
- });
-
- return (
- <div ref={containerRef} class="static ml-auto shrink-0 sm:relative sm:ml-0">
- <FilterPopoverTrigger
- ref={triggerRef}
- open={open()}
- onClick={() => setOpen((value) => !value)}
- aria-haspopup="dialog"
- aria-expanded={open()}
- aria-controls={open() ? panelId : undefined}
- title="Change table presentation"
- >
- <SlidersHorizontalIcon class="h-3.5 w-3.5" aria-hidden="true" />
- View
- </FilterPopoverTrigger>
-
- <Show when={open()}>
- <FilterToolbarPanel
- id={panelId}
- role="dialog"
- aria-label={props.label ?? 'View preferences'}
- widthClass="w-80 max-w-[calc(100vw-2rem)]"
- class={`${filterBottomNavAwarePanelClass} z-50 p-3`}
- >
- <div class="mb-3 border-b border-border-subtle pb-2">
- <div class="text-xs font-medium text-base-content">
- {props.label ?? 'View preferences'}
- </div>
- <div class="mt-0.5 text-[11px] leading-4 text-muted">
- {props.description ?? 'These choices are remembered for future visits.'}
- </div>
- </div>
- <div class="space-y-3">{props.children}</div>
- </FilterToolbarPanel>
- </Show>
- </div>
- );
-};
diff --git a/frontend-modern/src/components/shared/FilterToolbar.test.tsx b/frontend-modern/src/components/shared/FilterToolbar.test.tsx
index 21b0f9f4ca..c4f367373e 100644
--- a/frontend-modern/src/components/shared/FilterToolbar.test.tsx
+++ b/frontend-modern/src/components/shared/FilterToolbar.test.tsx
@@ -309,4 +309,9 @@ describe('FilterHeader', () => {
expect(panel).toHaveClass('max-w-[calc(100vw-2rem)]');
expect(panel).not.toHaveClass('w-[min(40rem,calc(100vw-2rem))]');
});
+
+ it('keeps persistent view preferences out of viewport-docked toolbar panels', () => {
+ expect(filterToolbarSource).not.toContain('filterBottomNavAwarePanelClass');
+ expect(filterToolbarSource).not.toContain('filter-bottom-nav-aware-panel');
+ });
});
diff --git a/frontend-modern/src/components/shared/FilterToolbar.tsx b/frontend-modern/src/components/shared/FilterToolbar.tsx
index 50ace728db..fb1820bb16 100644
--- a/frontend-modern/src/components/shared/FilterToolbar.tsx
+++ b/frontend-modern/src/components/shared/FilterToolbar.tsx
@@ -27,7 +27,6 @@ export const filterDividerClass = 'hidden h-5 w-px bg-surface-hover sm:block';
export const filterPanelClass =
'absolute right-0 top-[calc(100%+0.5rem)] z-[80] rounded-md border border-border bg-surface p-3 shadow-lg';
export const filterPanelDefaultWidthClass = 'w-[min(40rem,calc(100vw-2rem))]';
-export const filterBottomNavAwarePanelClass = 'filter-bottom-nav-aware-panel';
export const filterPanelTitleClass = 'text-sm font-medium text-base-content';
export const filterPanelDescriptionClass = 'text-xs text-muted';
export const mobileFiltersButtonClass =
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 6e7ba95413..955c57eed8 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -311,7 +311,7 @@ import addFilterMenuSource from '@/components/shared/FilterBar/AddFilterMenu.tsx
import filterCatalogSource from '@/components/shared/FilterBar/filterCatalog.ts?raw';
import filterBarOptionPresentationSource from '@/components/shared/FilterBar/filterOptionPresentation.tsx?raw';
import filterBarIndexSource from '@/components/shared/FilterBar/index.ts?raw';
-import viewOptionsMenuSource from '@/components/shared/FilterBar/ViewOptionsMenu.tsx?raw';
+import viewOptionsDisclosureSource from '@/components/shared/FilterBar/ViewOptionsDisclosure.tsx?raw';
import storagePageControlsSource from '@/components/Storage/StoragePageControls.tsx?raw';
import orgSwitcherSource from '@/components/OrgSwitcher.tsx?raw';
import resourceDetailDrawerOverviewTabSource from '@/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx?raw';
@@ -8558,19 +8558,26 @@ describe('shared primitive guardrails', () => {
// refactor that narrows the snapshot to a curated subset would silently
expect(filterToolbarSource).toContain('export const FilterPopoverTrigger');
- expect(filterToolbarSource).toContain('export const filterBottomNavAwarePanelClass');
expect(filterToolbarSource).toContain(
"'min-h-11 rounded-md text-xs font-medium sm:h-7 sm:min-h-0'",
);
- expect(viewOptionsMenuSource).toContain('<FilterPopoverTrigger');
- expect(viewOptionsMenuSource).toContain('class="static ml-auto shrink-0 sm:relative sm:ml-0"');
- expect(viewOptionsMenuSource).toContain('filterBottomNavAwarePanelClass');
+ expect(viewOptionsDisclosureSource).toContain('createViewOptionsDisclosureState');
+ expect(viewOptionsDisclosureSource).toContain('<FilterPopoverTrigger');
+ expect(viewOptionsDisclosureSource).toContain('role="region"');
+ expect(viewOptionsDisclosureSource).toContain('view-options-grid');
+ expect(viewOptionsDisclosureSource).not.toContain('xl:grid-cols-5');
+ expect(viewOptionsDisclosureSource).not.toContain('aria-haspopup');
+ expect(viewOptionsDisclosureSource).not.toContain('position:fixed');
+ expect(viewOptionsDisclosureSource).not.toContain('FilterToolbarPanel');
expect(filterCatalogSource).toContain('leadingControls?: JSX.Element;');
expect(filterCatalogSource).toContain('viewOptions?: JSX.Element;');
expect(filterCatalogSource).toContain('trailingControls?: JSX.Element;');
expect(filterCatalogSource).not.toContain('viewOptionsTrailing');
- expect(filterBarSource).toContain("import { ViewOptionsMenu } from './ViewOptionsMenu';");
- expect(filterBarSource).toContain('<ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>');
+ expect(filterBarSource).toContain("from './ViewOptionsDisclosure';");
+ expect(filterBarSource).toContain(
+ '<ViewOptionsDisclosureTrigger state={viewOptionsDisclosure} />',
+ );
+ expect(filterBarSource).toContain('<ViewOptionsDisclosurePanel state={viewOptionsDisclosure}>');
expect(filterBarSource).toContain('aria-label="Filter actions"');
expect(sharedPlatformPageSource).toContain('viewOptions?: JSX.Element;');
expect(sharedPlatformPageSource).toContain('{props.viewOptions}');
diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
index 8a7f38379f..41d5c4a81c 100644
--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
@@ -469,7 +469,7 @@ describe('Docker native tables', () => {
// single-host inventory must not offer host grouping.
fireEvent.click(screen.getByRole('button', { name: 'View' }));
- const dialog = screen.getByRole('dialog', { name: 'View preferences' });
+ const dialog = screen.getByRole('region', { name: 'View preferences' });
expect(within(dialog).getByText('Inventory totals')).toBeInTheDocument();
expect(within(dialog).queryByText('Layout')).not.toBeInTheDocument();
expect(within(dialog).queryByRole('group', { name: 'Group by' })).not.toBeInTheDocument();
@@ -506,7 +506,7 @@ describe('Docker native tables', () => {
expect(container.querySelector('[data-docker-host-group]')).toBeNull();
});
- it('keeps Docker grouping inside the shared View preferences popover', () => {
+ it('keeps Docker grouping inside the shared View preferences disclosure', () => {
const { container } = renderInRouter(() => (
<DockerContainersTable
resources={[
@@ -536,7 +536,7 @@ describe('Docker native tables', () => {
fireEvent.click(screen.getByRole('button', { name: 'View' }));
- const dialog = screen.getByRole('dialog', { name: 'View preferences' });
+ const dialog = screen.getByRole('region', { name: 'View preferences' });
expect(within(dialog).getByText('Layout')).toBeInTheDocument();
expect(within(dialog).getByRole('group', { name: 'Group by' })).toBeInTheDocument();
fireEvent.click(within(dialog).getByRole('button', { name: 'List' }));
diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
index 398c2a7fc1..20a2f81dc4 100644
--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
@@ -474,7 +474,7 @@ describe('PlatformTableToolbar', () => {
fireEvent.click(viewTrigger);
- const viewDialog = screen.getByRole('dialog', { name: 'View preferences' });
+ const viewDialog = screen.getByRole('region', { name: 'View preferences' });
expect(viewDialog).toHaveTextContent('Columns');
expect(viewDialog).not.toContainElement(screen.getByText('2 of 3 rows'));
diff --git a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
index 9f9e3ce0fb..f3415bd936 100644
--- a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
@@ -119,7 +119,7 @@ const deleteAgentMock = vi.mocked(MonitoringAPI.deleteAgent);
const openMachineColumnPicker = async () => {
const viewTrigger = screen.getByRole('button', { name: 'View' });
await fireEvent.click(viewTrigger);
- const viewDialog = screen.getByRole('dialog', { name: 'View preferences' });
+ const viewDialog = screen.getByRole('region', { name: 'View preferences' });
await fireEvent.click(within(viewDialog).getByTitle('Choose which columns to display'));
return viewDialog;
};
@@ -190,7 +190,7 @@ describe('AgentsMachinesTable', () => {
expect(onExternalStatusChange).not.toHaveBeenCalled();
});
- it('keeps the column picker inside the shared View preferences popover', async () => {
+ it('keeps the column picker inside the shared View preferences disclosure', async () => {
render(() => (
<AgentsMachinesTable
resources={[resource({ id: 'tower', name: 'Tower' })]}
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 2ff6e13f70..76e860dd7b 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -18,6 +18,33 @@
.\32xl\:text-base {
color: inherit;
}
+
+ .view-options-grid > * [role='group'] > button {
+ box-sizing: border-box;
+ height: 1.75rem;
+ min-height: 1.75rem;
+ padding-top: 0;
+ padding-bottom: 0;
+ }
+
+ .view-options-grid > * > :last-child:not([role='group']) > button {
+ box-sizing: border-box;
+ width: 100%;
+ height: 2rem;
+ min-height: 2rem;
+ }
+
+ @media (max-width: 640px) {
+ .view-options-grid > * [role='group'] > button {
+ height: 2.5rem;
+ min-height: 2.5rem;
+ }
+
+ .view-options-grid > * > :last-child:not([role='group']) > button {
+ height: 2.75rem;
+ min-height: 2.75rem;
+ }
+ }
}
/* Update banner animation */
@@ -426,35 +453,54 @@
scrollbar-gutter: stable;
}
- /*
- Filter utility panels must stay reachable in short windows as well as
- narrow ones. While the bottom navigation is present they sit above it;
- short desktop windows use the viewport edge, and roomy desktop windows
- return to the trigger-anchored dropdown.
- */
- .filter-bottom-nav-aware-panel {
- position: fixed !important;
- inset-inline: auto 1rem !important;
- top: auto !important;
- bottom: 1rem !important;
- max-height: calc(100dvh - 2rem);
- overflow-y: auto;
+ .view-options-grid {
+ container-type: inline-size;
+ grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 11rem));
+ justify-content: start;
}
- @media (max-width: 79.999rem) {
- .filter-bottom-nav-aware-panel {
- bottom: var(--pulse-mobile-nav-height) !important;
- max-height: calc(100dvh - var(--pulse-mobile-nav-height) - 1rem);
+ .view-options-grid > * {
+ width: 100%;
+ min-width: 0;
+ }
+
+ .view-options-grid > * > :last-child,
+ .view-options-grid > * [role='group'] {
+ width: 100%;
+ min-width: 0;
+ }
+
+ .view-options-grid > * [role='group'] {
+ display: flex;
+ }
+
+ .view-options-grid > * [role='group'] > button {
+ min-width: 0;
+ flex: 1 1 0%;
+ }
+
+ .view-options-grid > *:has(> :last-child > button[aria-expanded='true']) {
+ grid-column: 1 / -1;
+ width: 100cqw;
+ }
+
+ .column-picker-inline-options {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
+ }
+
+ @media (min-width: 641px) {
+ .view-options-grid
+ > *:has(> :last-child > button[aria-expanded='true'])
+ > :last-child
+ > button {
+ width: 11rem;
}
}
- @media (min-width: 80rem) and (min-height: 48rem) {
- .filter-bottom-nav-aware-panel {
- position: absolute !important;
- inset-inline: auto 0 !important;
- top: calc(100% + 0.25rem) !important;
- bottom: auto !important;
- max-height: min(38rem, calc(100vh - 8rem));
+ @media (max-width: 640px) {
+ .view-options-grid {
+ grid-template-columns: minmax(0, 1fr);
}
}