Skip to content

Commit 87be45d

Browse files
committed
refactor(Storage): parent node responsible for vdisks position in table
1 parent c42ba37 commit 87be45d

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

src/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
width: 100%;
88
height: var(--yc-text-body-2-line-height);
99

10+
vertical-align: top;
11+
1012
border: 1px solid var(--yc-color-infographics-misc-medium);
1113
border-radius: 2px;
1214
background-color: var(--yc-color-infographics-misc-light);

src/containers/Storage/StorageGroups/StorageGroups.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
.global-storage-groups {
22
&__vdisks-wrapper {
33
display: flex;
4-
overflow-x: auto;
5-
overflow-y: hidden;
64
justify-content: center;
75

86
min-width: 500px;
97
}
8+
&__vdisks-item {
9+
flex-grow: 1;
10+
11+
max-width: 200px;
12+
margin-right: 10px;
13+
14+
&:last-child {
15+
margin-right: 0px;
16+
}
17+
}
1018
&__pool-name-wrapper {
1119
display: flex;
1220
align-items: flex-end;

src/containers/Storage/StorageGroups/StorageGroups.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,13 @@ function StorageGroups({data, tableSettings, visibleEntities, nodes}: StorageGro
194194
render: ({value, row}) => (
195195
<div className={b('vdisks-wrapper')}>
196196
{_.map(value as any, (el) => (
197-
<Vdisk
198-
key={stringifyVdiskId(el.VDiskId)}
199-
{...el}
200-
PoolName={row[TableColumnsIds.PoolName]}
201-
nodes={nodes}
202-
/>
197+
<div className={b('vdisks-item')} key={stringifyVdiskId(el.VDiskId)}>
198+
<Vdisk
199+
{...el}
200+
PoolName={row[TableColumnsIds.PoolName]}
201+
nodes={nodes}
202+
/>
203+
</div>
203204
))}
204205
</div>
205206
),

src/containers/Storage/Vdisk/Vdisk.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
.vdisk-storage {
2-
display: flex;
3-
flex-grow: 1;
4-
align-items: center;
5-
6-
max-width: 200px;
7-
margin-right: 10px;
8-
92
cursor: pointer;
103

11-
&:last-child {
12-
margin-right: 0px;
13-
}
144
&__popup-wrapper {
155
padding: 5px 10px;
166
}

0 commit comments

Comments
 (0)