mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 10:27:58 +01:00
Merge pull request #5437 from zhoumeina/pr/fix_cardview_title
Fix Repositories card view title displayed wrong
This commit is contained in:
commit
2d9d6202d1
20
src/ui_ng/lib/src/_mixin.scss
Normal file
20
src/ui_ng/lib/src/_mixin.scss
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
@mixin text-overflow
|
||||||
|
{
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
word-wrap:break-word;
|
||||||
|
white-space: nowrap
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@mixin text-overflow-param($width) {
|
||||||
|
width: $width;
|
||||||
|
@include text-overflow;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin grid-left-top-pos{
|
||||||
|
position: absolute;
|
||||||
|
z-index: 100;
|
||||||
|
right: 35px;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
@ -55,7 +55,7 @@
|
|||||||
<div [ngClass]="{'card-media-block': true, 'wrap': !withAdmiral }">
|
<div [ngClass]="{'card-media-block': true, 'wrap': !withAdmiral }">
|
||||||
<img *ngIf="withAdmiral" [src]="getImgLink(item)"/>
|
<img *ngIf="withAdmiral" [src]="getImgLink(item)"/>
|
||||||
<div class="card-media-description">
|
<div class="card-media-description">
|
||||||
<span class="card-media-title">{{item.name}}</span>
|
<span class="card-media-title" [title]="item.name">{{item.name}}</span>
|
||||||
<p class="card-media-text">{{registryUrl}}</p>
|
<p class="card-media-text">{{registryUrl}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
|
@import '../mixin';
|
||||||
|
|
||||||
.rightPos{
|
.rightPos{
|
||||||
position: absolute;
|
@include grid-left-top-pos;
|
||||||
z-index: 100;
|
|
||||||
right: 35px;
|
|
||||||
margin-top: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
@ -13,7 +12,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
width: 2px;
|
width: 2px;
|
||||||
background-color: #cccccc;
|
background-color: #ccc;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
padding-bottom: 12px;
|
padding-bottom: 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -41,8 +40,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-media-title {
|
.card-media-title {
|
||||||
overflow: hidden;
|
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
@include text-overflow;
|
||||||
}
|
}
|
||||||
.card-media-text {
|
.card-media-text {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
Loading…
Reference in New Issue
Block a user