We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7887369 commit c0b3efeCopy full SHA for c0b3efe
src/containers/Storage/utils/useStorageColumnsSettings.ts
@@ -23,8 +23,11 @@ export function useStorageColumnsSettings() {
23
const maxSlots = maxSlotsPerDisk || MAX_SLOTS_DEFAULT;
24
const maxDisks = maxDisksPerNode || MAX_SLOTS_DEFAULT;
25
26
- const calculatedPDiskWidth =
27
- maxSlots * PDISK_VDISK_WIDTH + (maxSlots - 1) * PDISK_GAP_WIDTH;
+ const calculatedPDiskWidth = Math.max(
+ maxSlots * PDISK_VDISK_WIDTH + (maxSlots - 1) * PDISK_GAP_WIDTH,
28
+ PDISK_MIN_WIDTH,
29
+ );
30
+
31
const calculatedPDiskContainerWidth =
32
maxDisks * calculatedPDiskWidth +
33
(maxDisks - 1) * PDISK_MARGIN +
0 commit comments