Skip to content

Commit

Permalink
fix(core): avoid flex wrap in single selects
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfeldpausch committed Jan 22, 2024
1 parent cb9a624 commit e09fba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion core/src/components/cat-select/cat-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ label {
.select-wrapper-inner {
display: flex;
flex: 1 1 auto;
flex-wrap: wrap;
align-items: center;
gap: 0.25rem;
min-width: 0;
Expand All @@ -111,6 +110,10 @@ label {
--cat-avatar-size: 1.25rem;
--cat-avatar-font-size: 0.5rem;
}

.select-multiple & {
flex-wrap: wrap;
}
}

.select-input {
Expand Down
3 changes: 2 additions & 1 deletion core/src/components/cat-select/cat-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ export class CatSelect {
<div
class={{
'select-field': true,
'select-horizontal': this.horizontal
'select-horizontal': this.horizontal,
'select-multiple': this.multiple
}}
>
<div class={{ 'label-container': true, hidden: this.labelHidden }}>
Expand Down

0 comments on commit e09fba1

Please sign in to comment.