Skip to content

Commit

Permalink
fix(kit): MultiSelect fix overflow issues (#2847)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Oct 10, 2022
1 parent 98311f8 commit 372410e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion projects/core/components/data-list/data-list.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ tui-opt-group {
content: attr(data-label);
padding: 0 1rem;
color: var(--tui-text-02);
line-height: 1rem;
white-space: normal;
}

&:not(:empty) ~ & {
&:before {
padding-top: 1rem;
padding: 1.5rem 1rem 0.5rem;
}

&:after {
Expand Down
5 changes: 3 additions & 2 deletions projects/kit/components/multi-select/multi-select.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
display: flex;
flex: 1;
align-items: center;
padding: 1.6875rem 1rem 0.5625rem;
padding: 1.6875rem 0 0.5625rem 1rem;
overflow: hidden;

&_fullsize {
padding-top: 0.0625rem;
Expand All @@ -62,7 +63,7 @@
}

:host[data-size='m'] & {
padding: 1.1875rem 0.75rem 0;
padding: 1.1875rem 0 0 0.75rem;
font-size: 0.8125rem;
}
}
Expand Down

0 comments on commit 372410e

Please sign in to comment.