better
This commit is contained in:
parent
003f38ea60
commit
f87480e79d
7 changed files with 124 additions and 36 deletions
|
|
@ -28,6 +28,9 @@ import {
|
|||
</div>
|
||||
<div class="bottom-container">
|
||||
<div class="bottom" [class.open]="open()">
|
||||
@if (resolvedItems().length === 0 && emptyHint()) {
|
||||
<p class="empty-hint">{{ emptyHint() }}</p>
|
||||
}
|
||||
@for (item of resolvedItems(); track item) {
|
||||
@if (editing()) {
|
||||
<input
|
||||
|
|
@ -201,6 +204,14 @@ import {
|
|||
}
|
||||
}
|
||||
|
||||
.empty-hint {
|
||||
@include medium-text();
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
color: rgba($text-color, 0.72);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
input[type='text'] {
|
||||
@include sub-title-text();
|
||||
width: 100%;
|
||||
|
|
@ -373,6 +384,7 @@ export class SelectAddComponent implements OnChanges {
|
|||
readonly selected = input<string | null>(null);
|
||||
readonly editable = input<boolean>(false);
|
||||
readonly placeholder = input<string>('Select…');
|
||||
readonly emptyHint = input<string>('');
|
||||
readonly alwaysDropShadow = input<boolean>(false);
|
||||
readonly onlyShadowBorder = input<boolean>(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue