From c3c7bdf4a412f2fb1e643f4a506263b1bd350a9d Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 10 Feb 2026 19:24:03 +0000 Subject: [PATCH] fix(ui): wrap NodeSummaryTable and HostsOverview with ScrollableTable for mobile (#1196) NodeSummaryTable and HostsOverview used raw overflow-x-auto divs with min-width: 800px, causing column overlap on narrow screens. Wrap both with ScrollableTable and bump min-width to 1000px to match actual column totals. Also bump DockerHostSummaryTable min-width from 800px to 920px to match its column widths. --- .../src/components/Docker/DockerHostSummaryTable.tsx | 4 ++-- frontend-modern/src/components/Hosts/HostsOverview.tsx | 8 ++++---- .../src/components/shared/NodeSummaryTable.tsx | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend-modern/src/components/Docker/DockerHostSummaryTable.tsx b/frontend-modern/src/components/Docker/DockerHostSummaryTable.tsx index 8e95216143..db4bff61ab 100644 --- a/frontend-modern/src/components/Docker/DockerHostSummaryTable.tsx +++ b/frontend-modern/src/components/Docker/DockerHostSummaryTable.tsx @@ -132,8 +132,8 @@ export const DockerHostSummaryTable: Component = (p return ( <> - - + +
{ } > -
- - + +
{/* Essential columns */} @@ -1071,7 +1071,7 @@ export const HostsOverview: Component = () => {
-
+
diff --git a/frontend-modern/src/components/shared/NodeSummaryTable.tsx b/frontend-modern/src/components/shared/NodeSummaryTable.tsx index 0b76b23523..a5c66c3b58 100644 --- a/frontend-modern/src/components/shared/NodeSummaryTable.tsx +++ b/frontend-modern/src/components/shared/NodeSummaryTable.tsx @@ -17,6 +17,7 @@ import { EnhancedCPUBar } from '@/components/Dashboard/EnhancedCPUBar'; import { TemperatureGauge } from '@/components/shared/TemperatureGauge'; import { useBreakpoint } from '@/hooks/useBreakpoint'; import { useMetricsViewMode } from '@/stores/metricsViewMode'; +import { ScrollableTable } from '@/components/shared/ScrollableTable'; // Lazy load NodeDrawer to avoid circular dependencies and reduce bundle size const NodeDrawer = lazy(() => import('./NodeDrawer').then(m => ({ default: m.NodeDrawer }))); @@ -371,8 +372,8 @@ export const NodeSummaryTable: Component = (props) => { return ( -
- + +
@@ -857,7 +858,7 @@ export const NodeSummaryTable: Component = (props) => {
-
-
+ + ); };