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
Remove recovery table inline styles from live demo
rcourtman80fe2baa5a3e
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 0c7099e6f5..7b5dc0044e 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1224,6 +1224,10 @@ That same direct proof rule also applies to the shared recovery summary helper:`frontend-modern/src/utils/recoverySummaryPresentation.ts` must stay on theexplicit `recovery-product-surface` proof path instead of inheriting coverageonly through pages or higher-level recovery components.+The default protected-inventory recovery route must also keep its primary+table shell on class-driven sizing (`table-fixed` plus owned width classes)+instead of inline `table-layout` / `min-width` styles, so the public recovery+surface stays CSP-safe without drifting from the shared table contract.That same direct proof rule also applies to the shared recovery record helper:`frontend-modern/src/utils/recoveryRecordPresentation.ts` must stay on theexplicit `recovery-product-surface` proof path instead of inheriting coveragediff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsxindex 9b6b09e5fa..0e5b396b26 100644--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx@@ -339,8 +339,9 @@ export const RecoveryProtectedInventorySection: Component<<Show when={props.filteredRollups().length > 0}><div class="overflow-x-auto bg-surface"><Table- class="w-full border-collapse whitespace-nowrap"- style={{ 'table-layout': 'fixed', 'min-width': props.isMobile ? '100%' : '640px' }}+ class={`w-full border-collapse whitespace-nowrap table-fixed ${+ props.isMobile ? 'min-w-full' : 'min-w-[640px]'+ }`}><TableHeader><TableRow class="bg-surface-alt/95 text-muted">diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex 64edcfc647..187de8b7cd 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -742,6 +742,15 @@ describe('Recovery', () => {expect(historyTable).toHaveStyle({ 'min-width': '980px', 'table-layout': 'fixed' });});+ it('keeps the protected inventory table CSP-safe on the default recovery route', async () => {+ render(() => <Recovery />);++ const protectedInventoryTable = await screen.findByRole('table');+ expect(protectedInventoryTable).not.toHaveAttribute('style');+ expect(protectedInventoryTable.className).toContain('table-fixed');+ expect(protectedInventoryTable.className).toContain('min-w-[640px]');+ });+it('keeps canonical item and platform columns visible when legacy hidden-column ids exist', async () => {facetsPayload.clusters = ['lab-cluster'];localStorage.setItem(