Skip to content

Commit 09599c1

Browse files
fix(StorageGroups): display full pool name with left cut (#1421)
1 parent 27484a0 commit 09599c1

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

src/containers/Storage/StorageGroups/columns/StorageGroupsColumns.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@
2222
}
2323
}
2424
}
25+
2526
&__pool-name-wrapper {
26-
width: 230px;
27+
overflow: hidden;
28+
29+
white-space: nowrap;
30+
text-overflow: ellipsis;
31+
direction: rtl;
32+
}
33+
34+
&__pool-name {
35+
unicode-bidi: plaintext;
2736
}
2837

2938
&__group-id {

src/containers/Storage/StorageGroups/columns/columns.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@ const poolNameColumn: StorageGroupsColumn = {
3333
header: STORAGE_GROUPS_COLUMNS_TITLES.PoolName,
3434
width: 250,
3535
render: ({row}) => {
36-
const splitted = row.PoolName?.split('/');
37-
return (
38-
splitted && (
39-
<CellWithPopover
40-
wrapperClassName={b('pool-name-wrapper')}
41-
content={row.PoolName}
42-
placement={['right']}
43-
behavior={PopoverBehavior.Immediate}
44-
>
45-
{splitted[splitted.length - 1]}
46-
</CellWithPopover>
47-
)
36+
return row.PoolName ? (
37+
<CellWithPopover
38+
content={row.PoolName}
39+
placement={['right']}
40+
behavior={PopoverBehavior.Immediate}
41+
className={b('pool-name-wrapper')}
42+
>
43+
<span className={b('pool-name')}>{row.PoolName}</span>
44+
</CellWithPopover>
45+
) : (
46+
EMPTY_DATA_PLACEHOLDER
4847
);
4948
},
5049
align: DataTable.LEFT,

0 commit comments

Comments
 (0)