Skip to content

Commit 3b2a8cd

Browse files
authored
fix: allow multi select options to overflow (#702)
1 parent db67f98 commit 3b2a8cd

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

projects/components/src/multi-select/multi-select.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,17 @@
6464
@include dropdown(6px);
6565
min-width: 120px;
6666
display: flex;
67+
height: 100%;
6768
flex-direction: column;
6869

6970
.divider {
7071
padding: 0px 16px 4px 16px;
7172
}
7273

74+
.multi-select-options {
75+
overflow: auto;
76+
}
77+
7378
.multi-select-option {
7479
display: flex;
7580
height: 34px;

projects/components/src/multi-select/multi-select.component.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,22 @@ import { MultiSelectJustify } from './multi-select-justify';
8888
</ng-container>
8989
</ng-container>
9090
91-
<div
92-
*ngFor="let item of this.filteredOptions$ | async"
93-
(click)="this.onSelectionChange(item)"
94-
class="multi-select-option"
95-
>
96-
<input class="checkbox" type="checkbox" [checked]="this.isSelectedItem(item)" />
97-
<ht-icon
98-
class="icon"
99-
*ngIf="item.icon"
100-
[icon]="item.icon"
101-
size="${IconSize.ExtraSmall}"
102-
[color]="item.iconColor"
103-
></ht-icon>
104-
<span class="label">{{ item.label }}</span>
91+
<div class="multi-select-options">
92+
<div
93+
*ngFor="let item of this.filteredOptions$ | async"
94+
(click)="this.onSelectionChange(item)"
95+
class="multi-select-option"
96+
>
97+
<input class="checkbox" type="checkbox" [checked]="this.isSelectedItem(item)" />
98+
<ht-icon
99+
class="icon"
100+
*ngIf="item.icon"
101+
[icon]="item.icon"
102+
size="${IconSize.ExtraSmall}"
103+
[color]="item.iconColor"
104+
></ht-icon>
105+
<span class="label">{{ item.label }}</span>
106+
</div>
105107
</div>
106108
</div>
107109
</ht-popover-content>

0 commit comments

Comments
 (0)