From bdcccc0eeedafae633be4bfca47c8feb666faf00 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Mon, 17 Aug 2026 12:58:17 +1000 Subject: [PATCH] fix(studio): stop infrastructure usage charts using viewport height h-full on the cards resolved against ProjectLayout's main in production once topology sat in the same flex section. Use flex-1 inside the grid instead so height stays content-sized. --- .../DiskManagement/ComputeAndDiskUsageCharts.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx b/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx index ec8d8b68dbc..2e5b94f68ca 100644 --- a/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx +++ b/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx @@ -93,7 +93,9 @@ const PERCENTAGE_Y_AXIS_PROPS = { const getUsageCardClassName = (status: UsageMetricStatus) => cn( - 'h-full flex flex-col transition-colors', + // flex-1 equalises the two cards inside the grid. Avoid h-full: it + // resolves against ProjectLayout's viewport-sized main in production. + 'flex flex-1 flex-col min-h-0 transition-colors', status === 'warning' && 'border-warning-400 bg-warning-200/30', status === 'negative' && 'border-destructive-400 bg-destructive-200/30' ) @@ -164,10 +166,10 @@ export const ComputeAndDiskUsageCharts = ({ className }: { className?: string }) className )} > -