mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-22 21:02:34 +08:00
* disable organization selector when only one org is selected * break long org names in assign collections copy - applicable more in the browser implementation * add `title` to each select option so a mouse over presents the name - more applicable to the browser extension where names can overflow * truncate options that overflow a select * set max width of form fields to 100%
23 lines
632 B
HTML
23 lines
632 B
HTML
<ng-select
|
|
[(ngModel)]="selectedOption"
|
|
(ngModelChange)="onChange($event)"
|
|
[disabled]="disabled"
|
|
[placeholder]="placeholder"
|
|
[items]="items"
|
|
(blur)="onBlur()"
|
|
[labelForId]="labelForId"
|
|
[clearable]="false"
|
|
appendTo="body"
|
|
>
|
|
<ng-template ng-option-tmp let-item="item">
|
|
<div class="tw-flex" [title]="item.label">
|
|
<div class="tw-mr-2 tw-flex-initial">
|
|
<i *ngIf="item.icon != null" class="bwi bwi-fw {{ item.icon }}" aria-hidden="true"></i>
|
|
</div>
|
|
<div class="tw-flex-1 tw-text-ellipsis tw-overflow-hidden">
|
|
{{ item.label }}
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</ng-select>
|