mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-28 01:32:15 +01:00
Improve css for tags column (#16811)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
4d116893be
commit
6ca3665207
@ -202,9 +202,9 @@
|
||||
<div *ngIf="artifact.tags" class="truncated width-p-100">
|
||||
<clr-tooltip class="width-p-100">
|
||||
<div clrTooltipTrigger class="center">
|
||||
<div class="center">
|
||||
<span class="truncated">{{tagsString(artifact?.tags)}}</span>
|
||||
<span *ngIf="artifact?.tags?.length>1">({{artifact?.tagNumber}})</span>
|
||||
<div class="center width-p-100">
|
||||
<span #tagsSpan class="truncated width-p-75">{{tagsString(artifact?.tags)}}</span>
|
||||
<span *ngIf="artifact?.tags?.length>1 && isEllipsisActive(tagsSpan)">({{artifact?.tagNumber}})</span>
|
||||
</div>
|
||||
</div>
|
||||
<clr-tooltip-content [clrPosition]="'top-right'" class="lg" [clrSize]="'lg'" *clrIfOpen>
|
||||
|
@ -431,7 +431,7 @@ clr-datagrid {
|
||||
width: 5rem !important;
|
||||
}
|
||||
.tag-column {
|
||||
width: 7rem !important;
|
||||
min-width: 7rem;
|
||||
}
|
||||
.signed {
|
||||
color: #00d40f;
|
||||
@ -446,3 +446,6 @@ clr-datagrid {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.width-p-75 {
|
||||
width: 75%;
|
||||
}
|
||||
|
@ -1213,4 +1213,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
|
||||
buttons);
|
||||
this.confirmationDialog.open(message);
|
||||
}
|
||||
isEllipsisActive(ele: HTMLSpanElement): boolean {
|
||||
return ele?.offsetWidth < ele?.scrollWidth;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user