diff --git a/src/containers/Storage/PDisk/PDisk.scss b/src/containers/Storage/PDisk/PDisk.scss index d6aa887fe..d615a278f 100644 --- a/src/containers/Storage/PDisk/PDisk.scss +++ b/src/containers/Storage/PDisk/PDisk.scss @@ -1,18 +1,12 @@ .pdisk-storage { - --pdisk-vdisk-width: 3px; - --pdisk-gap-width: 2px; - position: relative; display: flex; flex-direction: column; justify-content: flex-end; - width: calc( - var(--pdisk-max-slots, 1) * var(--pdisk-vdisk-width) + (var(--pdisk-max-slots, 1) - 1) * - var(--pdisk-gap-width) - ); - min-width: 120px; + width: var(--pdisk-width); + min-width: var(--pdisk-min-width); &__content { position: relative; diff --git a/src/containers/Storage/PDisk/PDisk.tsx b/src/containers/Storage/PDisk/PDisk.tsx index e6cc14073..b37b5bbf4 100644 --- a/src/containers/Storage/PDisk/PDisk.tsx +++ b/src/containers/Storage/PDisk/PDisk.tsx @@ -16,8 +16,6 @@ import './PDisk.scss'; const b = cn('pdisk-storage'); -const PDISK_MAX_SLOTS_CSS_VAR = '--pdisk-max-slots'; - interface PDiskProps { data?: PreparedPDisk; vDisks?: PreparedVDisk[]; @@ -27,7 +25,6 @@ interface PDiskProps { className?: string; progressBarClassName?: string; viewContext?: StorageViewContext; - maximumSlotsPerDisk?: string; } export const PDisk = ({ @@ -39,7 +36,6 @@ export const PDisk = ({ className, progressBarClassName, viewContext, - maximumSlotsPerDisk, }: PDiskProps) => { const {NodeId, PDiskId} = data; const pDiskIdsDefined = valueIsDefined(NodeId) && valueIsDefined(PDiskId); @@ -77,17 +73,7 @@ export const PDisk = ({ } return ( -