Skip to content

Commit 54e3bbd

Browse files
fix: styles for when is multiple
1 parent d702fd3 commit 54e3bbd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/components/base/src/select/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ const Select = ({
291291
formFieldContext === undefined && styles.standalone,
292292
(disabled || formFieldContext?.disabled) && styles.disabled,
293293
loading && styles.loading,
294+
selectMultiple && styles.multiple,
294295
(fullWidth ?? formFieldContext?.fullWidth) && styles.full_width,
295296
className,
296297
)}

packages/components/base/src/select/styles/index.module.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@
3636
.display_value_item {
3737
display: inline-block;
3838
vertical-align: middle;
39-
width: 100%;
39+
max-width: 100%;
4040
overflow: hidden;
4141
text-overflow: ellipsis;
4242
white-space: nowrap;
4343
}
4444

45+
.root:not(.multiple) {
46+
.display_value_item {
47+
width: 100%;
48+
}
49+
}
50+
4551
// When not inside form field, has own border, etc
4652
.standalone {
4753
@include form-field.standalone-input;

0 commit comments

Comments
 (0)