mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 16:55:16 +01:00
Fix many issue for harbor for ui
1.filter input auto focus 2.filter is covered by datagrid 3.modify elements of click action in label Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
5a390d2fa0
commit
4adc94762d
@ -1,6 +1,6 @@
|
||||
<span>
|
||||
<clr-icon shape="search" size="20" class="search-btn" [class.filter-icon]="isShowSearchBox" (click)="onClick()"></clr-icon>
|
||||
<input [hidden]="!isShowSearchBox" type="text" class="filter-input" (keyup)="valueChange()" (focus)="inputFocus()"
|
||||
<input [hidden]="!isShowSearchBox" type="text" class="filter-input" autofocus (keyup)="valueChange()" (focus)="inputFocus()"
|
||||
placeholder="{{placeHolder}}" [(ngModel)]="currentValue" />
|
||||
<span class="filter-divider" *ngIf="withDivider"></span>
|
||||
</span>
|
@ -7,6 +7,7 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
line-height: .875rem;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
.label clr-icon {
|
||||
|
@ -1,18 +1,21 @@
|
||||
<div>
|
||||
<div class="form-group filter-div">
|
||||
<input #filterInput type="text" placeholder='{{"LABEL.FILTER_LABEL_PLACEHOLDER" | translate }}' [(ngModel)]="labelFilter">
|
||||
<input #filterInput type="text" placeholder='{{"LABEL.FILTER_LABEL_PLACEHOLDER" | translate }}'
|
||||
[(ngModel)]="labelFilter">
|
||||
</div>
|
||||
<div class="label-items-container">
|
||||
<div class="dropdown-item" *ngFor='let label of filteredLabels'>
|
||||
<span class="check-label-span">
|
||||
<clr-icon *ngIf="isSelected(label)" shape="check"></clr-icon>
|
||||
</span>
|
||||
<span (click)="selectLabel(label)">
|
||||
<hbr-label-piece [label]="label" [labelWidth]="90"></hbr-label-piece>
|
||||
</span>
|
||||
<span class="x-label-span" (click)="unselectLabel(label)">
|
||||
<clr-icon *ngIf="isSelected(label)" shape="times-circle"></clr-icon>
|
||||
</span>
|
||||
<div class="cur-pointer" (click)="selectLabel(label)">
|
||||
<span class="check-label-span">
|
||||
<clr-icon *ngIf="isSelected(label)" shape="check"></clr-icon>
|
||||
</span>
|
||||
<span class="cur-pointer">
|
||||
<hbr-label-piece [label]="label" [labelWidth]="90"></hbr-label-piece>
|
||||
</span>
|
||||
<span *ngIf="isSelected(label)" class="x-label-span" (click)="$event.stopPropagation(); unselectLabel(label)">
|
||||
<clr-icon shape="times-circle"></clr-icon>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -7,7 +7,9 @@
|
||||
margin-left: 9px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.cur-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
.label-items-container {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
|
@ -5,18 +5,21 @@
|
||||
</div>
|
||||
<div class="label-items-container">
|
||||
<div class="dropdown-item" *ngFor='let label of sortedLabels'>
|
||||
<div *ngIf="!isMarkOngoing(label)" class="mark-label-div">
|
||||
<clr-icon *ngIf="isMarked(label)" shape="check" ></clr-icon>
|
||||
</div>
|
||||
<div *ngIf="isMarkOngoing(label)" class="spinner spinner-sm">
|
||||
<div (click)="markLabel(label)">
|
||||
<div *ngIf="!isMarkOngoing(label)" class="mark-label-div">
|
||||
<clr-icon *ngIf="isMarked(label)" shape="check"></clr-icon>
|
||||
</div>
|
||||
<div *ngIf="isMarkOngoing(label)" class="spinner spinner-sm">
|
||||
Loading...
|
||||
</div>
|
||||
<div class="label-div">
|
||||
<hbr-label-piece [label]="label" [labelWidth]="130"></hbr-label-piece>
|
||||
</div>
|
||||
<div class="unmark-label-div" (click)="unmarkLabel(label)">
|
||||
<clr-icon *ngIf="isMarked(label)" shape="times-circle"></clr-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div (click)="markLabel(label)" class="label-div">
|
||||
<hbr-label-piece [label]="label" [labelWidth]="130"></hbr-label-piece>
|
||||
</div>
|
||||
<div class="unmark-label-div" (click)="unmarkLabel(label)">
|
||||
<clr-icon *ngIf="isMarked(label)" shape="times-circle"></clr-icon>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -77,7 +77,7 @@ body {
|
||||
}
|
||||
|
||||
.datagrid-header{
|
||||
z-index: 1 !important;
|
||||
z-index: 0 !important;
|
||||
}
|
||||
|
||||
.color-green {
|
||||
|
Loading…
Reference in New Issue
Block a user