Skip to content

Commit c0b3efe

Browse files
authored
fix: columns width (#2229)
1 parent 7887369 commit c0b3efe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/containers/Storage/utils/useStorageColumnsSettings.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ export function useStorageColumnsSettings() {
2323
const maxSlots = maxSlotsPerDisk || MAX_SLOTS_DEFAULT;
2424
const maxDisks = maxDisksPerNode || MAX_SLOTS_DEFAULT;
2525

26-
const calculatedPDiskWidth =
27-
maxSlots * PDISK_VDISK_WIDTH + (maxSlots - 1) * PDISK_GAP_WIDTH;
26+
const calculatedPDiskWidth = Math.max(
27+
maxSlots * PDISK_VDISK_WIDTH + (maxSlots - 1) * PDISK_GAP_WIDTH,
28+
PDISK_MIN_WIDTH,
29+
);
30+
2831
const calculatedPDiskContainerWidth =
2932
maxDisks * calculatedPDiskWidth +
3033
(maxDisks - 1) * PDISK_MARGIN +

0 commit comments

Comments
 (0)