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.

Match connected-systems card layout breakpoint to table min-width

rcourtman1484e839637d
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index f2bf714cb7..fa64280e18 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -75,7 +75,10 @@ const workspaceSecondaryButtonClass =
const discoveryRowClass =
'border-b border-border-subtle bg-blue-50/30 hover:bg-blue-50/40 dark:bg-blue-950/10 dark:hover:bg-blue-950/20';
const wrappedFieldClass = 'whitespace-normal break-words leading-4';
-const CARD_LAYOUT_MAX_WIDTH_PX = 767;
+// The connected-systems table sets `min-w-[820px]`; switch to the card
+// layout whenever the measured container can't fit that, otherwise the
+// table renders but overflows horizontally inside the settings panel.
+const CARD_LAYOUT_MAX_WIDTH_PX = 819;
const sortRows = (rows: readonly InfrastructureSystemRow[]): InfrastructureSystemRow[] =>
[...rows].sort((left, right) => left.name.localeCompare(right.name));