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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Align page control action rail
rcourtman194f76708b54
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 2d79b77a73..2fd8318fe0 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -340,7 +340,11 @@ work extends shared components instead of creating new local variants.with the column/reset cluster must enter through `toolbarTrailing` insteadof staying as loose filter-row children, and those controls must staygrouped when dense toolbars wrap so popovers remain viewport-safe instead of- drifting off-screen from page-local flex behavior. Shared `FilterToolbarPanel` owns+ drifting off-screen from page-local flex behavior. The shared action rail+ must align to the trailing edge at wrapped desktop widths instead of waiting+ for a wide breakpoint, so Recovery events, Workloads, Storage,+ Infrastructure, and future dense toolbars do not strand Filter/Columns/Reset+ actions at the left edge of a second row. Shared `FilterToolbarPanel` ownsdefault filter-popover geometry, and `FilterToolbar` owns the shared chartvisibility display action: Workloads, Storage, Infrastructure, and futuresummary-bearing pages must use `ChartVisibilityToggleButton` so thediff --git a/frontend-modern/src/components/shared/PageControls.guardrails.test.ts b/frontend-modern/src/components/shared/PageControls.guardrails.test.tsindex b03b81b094..e98ee32a6b 100644--- a/frontend-modern/src/components/shared/PageControls.guardrails.test.ts+++ b/frontend-modern/src/components/shared/PageControls.guardrails.test.ts@@ -126,6 +126,9 @@ describe('page controls guardrails', () => {expect(workloadsFilterSource).not.toContain('aria-label="Charts"');expect(storageFilterSource).not.toContain('aria-label="Charts"');expect(infrastructurePageSurfaceSource).not.toContain('aria-label="Charts"');+ expect(pageControlsSource).toContain('page-controls-toolbar-actions ml-auto');+ expect(pageControlsSource).toContain('justify-end gap-2');+ expect(pageControlsSource).not.toContain('2xl:ml-auto');expect(recoveryHistorySectionSource).not.toContain('toolbarClass="lg:flex-nowrap"');expect(recoveryHistorySectionSource).not.toContain('ml-auto flex items-center gap-2');});diff --git a/frontend-modern/src/components/shared/PageControls.test.tsx b/frontend-modern/src/components/shared/PageControls.test.tsxindex 08c831f93f..efb011f34b 100644--- a/frontend-modern/src/components/shared/PageControls.test.tsx+++ b/frontend-modern/src/components/shared/PageControls.test.tsx@@ -38,6 +38,9 @@ describe('PageControls', () => {const trailingActions = columnsButton.closest('.page-controls-toolbar-actions');expect(trailingActions).not.toBeNull();expect(trailingActions!).toContainElement(resetButton);+ expect(trailingActions!).toHaveClass('ml-auto');+ expect(trailingActions!).toHaveClass('justify-end');+ expect(trailingActions!).not.toHaveClass('2xl:ml-auto');fireEvent.click(screen.getByRole('button', { name: /filters/i }));expect(onToggleFilters).toHaveBeenCalledTimes(1);@@ -110,6 +113,8 @@ describe('PageControls', () => {expect(trailingActions).not.toBeNull();expect(trailingActions!).toContainElement(trailing);expect(trailingActions!).toContainElement(columnsButton);+ expect(trailingActions!).toHaveClass('ml-auto');+ expect(trailingActions!).toHaveClass('justify-end');expect(screen.queryByTestId('desktop-utility')).not.toBeInTheDocument();});});diff --git a/frontend-modern/src/components/shared/PageControls.tsx b/frontend-modern/src/components/shared/PageControls.tsxindex 0a0d1a4a60..472ae8f282 100644--- a/frontend-modern/src/components/shared/PageControls.tsx+++ b/frontend-modern/src/components/shared/PageControls.tsx@@ -110,7 +110,7 @@ export const PageControls: Component<PageControlsProps> = (props) => {{local.children}<Show when={hasTrailingActions()}>- <div class="page-controls-toolbar-actions inline-flex flex-wrap items-center gap-2 2xl:ml-auto">+ <div class="page-controls-toolbar-actions ml-auto inline-flex flex-wrap items-center justify-end gap-2"><Show when={local.toolbarTrailing}>{local.toolbarTrailing}</Show><Show when={activeUtilityActions()}>