Improve artifact icon style

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
AllForNothing 2022-04-11 15:06:12 +08:00
parent b8804ef363
commit 83f457e725
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</clr-dg-action-overflow>
<clr-dg-cell>
<div class="cell">
<div title="{{a?.digest}}" class="artifact-icon clr-display-inline-block">
<div title="{{a?.digest}}" class="artifact-icon-div clr-display-inline-block">
<img *ngIf="getIcon(a.icon)" class="artifact-icon" [title]="a.type"
[src]="getIcon(a.icon)" (error)="showDefaultIcon($event)" />
</div>

View File

@ -1,7 +1,10 @@
.artifact-icon {
width: 2.5rem;
height: 0.8rem;
}
.artifact-icon-div {
text-align: center;
width: 2.5rem
}
.cell {
display: flex;
align-items: center;