Skip to content

Commit ea37d9f

Browse files
committed
fix(TabletsFilters): properly display long data in select options
1 parent cce100c commit ea37d9f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/containers/TabletsFilters/TabletsFilters.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ const Filters = ({
243243
<Select
244244
multiple
245245
label="Node ID"
246-
showApply
247-
showItemMeta
248246
width={TabletsFilters.CONTROL_WIDTH}
249247
popupWidth={TabletsFilters.POPUP_WIDTH}
250248
placeholder="All"
@@ -255,7 +253,7 @@ const Filters = ({
255253
return (
256254
<div className={b('node')}>
257255
<div>{option.content}</div>
258-
<div className={b('node-meta')}>{option.meta}</div>
256+
<div className={b('node-meta')} title={option.meta}>{option.meta}</div>
259257
</div>
260258
);
261259
}}
@@ -267,7 +265,6 @@ const Filters = ({
267265
<Select
268266
multiple
269267
label="multiple"
270-
showApply
271268
width={TabletsFilters.CONTROL_WIDTH}
272269
placeholder="All"
273270
options={states}
@@ -280,7 +277,6 @@ const Filters = ({
280277
<Select
281278
multiple
282279
label="Types"
283-
showApply
284280
width={TabletsFilters.CONTROL_WIDTH}
285281
placeholder="All"
286282
options={types}

src/containers/TabletsFilters/TabletsFilters.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66
@include flex-container();
77

88
&__node {
9-
display: flex;
10-
flex-direction: column;
9+
overflow: hidden;
1110

1211
font-size: var(--yc-text-body-1-font-size);
1312
line-height: var(--yc-text-body-1-line-height);
1413
}
1514

1615
&__node-meta {
16+
overflow: hidden;
17+
18+
white-space: nowrap;
19+
text-overflow: ellipsis;
20+
1721
color: var(--yc-color-text-secondary);
1822
}
1923

0 commit comments

Comments
 (0)