diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx index c47a8bb2da8..1e7491d44e9 100644 --- a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx +++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx @@ -76,7 +76,14 @@ export const DiskSpaceBar = ({ form }: DiskSpaceBarProps) => { const newUsedPercentageSystem = Math.min((usedSizeSystem / newTotalSize) * 100, 100) const resizePercentage = AUTOSCALING_THRESHOLD * 100 - const newResizePercentage = AUTOSCALING_THRESHOLD * 100 + // Anchored to the actual right edge of the highlighted "border-r" zone below, rather than + // trusting resizePercentage alone, since usedPercentage* are each rounded independently and + // can drift a fraction of a percent from usedTotalPercentage. + const resizeMarkerLeftPercentage = + usedPercentageDatabase + + usedPercentageWAL + + usedPercentageSystem + + Math.max(0, resizePercentage - usedTotalPercentage) return (
- Supabase expands your disk storage automatically when the database reaches 90% - of the disk size. However, disk modifications, including auto-scaling, are - limited to 4 within a rolling 24-hour window. -
-- If you exhaust these modifications and reach 95% of the disk space, your - project{' '} - will enter read-only mode. -
-+ Supabase expands your disk storage automatically when the database reaches 90% + of the disk size. However, disk modifications, including auto-scaling, are + limited to 4 within a rolling 24-hour window. +
++ If you exhaust these modifications and reach 95% of the disk space, your project{' '} + will enter read-only mode. +
+