Fix: Copy Pull Button Overlap with Tag Immutable Label (#21720)

fix: copy button overlap with tag immutable

- fix copy button overlap with tag immutable label on artifact-tag
component
- update css to fix this issue

Signed-off-by: bupd <bupdprasanth@gmail.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
Prasanth Baskar 2025-03-17 15:45:23 +05:30 committed by GitHub
parent 3407776e38
commit 816667c794
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 14 deletions

View File

@ -27,6 +27,6 @@
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: start;
align-items: flex-start;
gap: 20px;
}

View File

@ -127,18 +127,20 @@
title="{{ tag.name }}"
>{{ tag.name }}</span
>
<span *ngIf="tag.immutable" class="label label-info ml-8">{{
'REPOSITORY.IMMUTABLE' | translate
}}</span>
<app-pull-command
class="pull-btn"
[isTagMode]="true"
[artifact]="artifactDetails"
[accessoryType]="accessoryType"
[registryUrl]="registryUrl"
[projectName]="projectName"
[repoName]="repositoryName"
[selectedTag]="tag.name"></app-pull-command>
<div class="pull-label">
<span *ngIf="tag.immutable" class="label label-info ml-8">{{
'REPOSITORY.IMMUTABLE' | translate
}}</span>
<app-pull-command
class="pull-btn"
[isTagMode]="true"
[artifact]="artifactDetails"
[accessoryType]="accessoryType"
[registryUrl]="registryUrl"
[projectName]="projectName"
[repoName]="repositoryName"
[selectedTag]="tag.name"></app-pull-command>
</div>
</div>
</clr-dg-cell>
<clr-dg-cell>{{

View File

@ -19,7 +19,6 @@
position: relative;
.label {
position: absolute;
right: 0;
margin-right: 0;
}
@ -45,6 +44,15 @@
align-items: center;
}
.pull-label {
display: flex;
flex-flow: row wrap;
gap: 8px;
align-content: flex-end;
justify-content: space-between;
align-items: flex-end;
}
.refresh-btn {
cursor: pointer;
}