diff --git a/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx b/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx index 2e5b94f68ca..c3a8cb7605e 100644 --- a/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx +++ b/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx @@ -93,9 +93,7 @@ const PERCENTAGE_Y_AXIS_PROPS = { const getUsageCardClassName = (status: UsageMetricStatus) => cn( - // 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', + 'flex flex-col transition-colors', status === 'warning' && 'border-warning-400 bg-warning-200/30', status === 'negative' && 'border-destructive-400 bg-destructive-200/30' ) @@ -166,10 +164,10 @@ export const ComputeAndDiskUsageCharts = ({ className }: { className?: string }) className )} > -
+
- +
-
- +
+ -
- - - + {/* + ProjectLayout's main is a viewport-tall flex column. If this form is a + direct flex item, production builds resolve descendant h-full / flex-1 + against that main (next dev often does not). Keep a block wrapper so + height stays content-sized. + */} +
+ + +
{overviewExtra} - - - - {(isProjectResizing || - isProjectRequestingDiskChanges || - (isEntitlementsLoaded && !isPlanUpgradeRequired && noPermissions)) && ( -
- - -
- )} - {beforeScaling} - - - - - Scaling - - - {isEntitlementsLoaded && isPlanUpgradeRequired && ( - - )} - - - - - - {isAws && ( - + - )} - - - - - - {isDirty ? ( - -
- - -
-
- ) : null} -
- + )} + + {beforeScaling} + + + + + Scaling + + + {isEntitlementsLoaded && isPlanUpgradeRequired && ( + + )} + + + + + + {isAws && ( + + )} + + + + + + {isDirty ? ( + +
+ + + +
+
+ ) : null} +
+ +
) } diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureTopology.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureTopology.tsx index 3d03b7cd8c8..efd41170343 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureTopology.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureTopology.tsx @@ -8,7 +8,7 @@ export const InfrastructureTopology = () => { if (!infrastructureReadReplicas) return null return ( -
+
)