Skip to content

Commit

Permalink
Truncate version on Apps list
Browse files Browse the repository at this point in the history
  • Loading branch information
oodamien committed Dec 4, 2023
1 parent 7fb5bd9 commit 8d75704
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/apps/apps.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="page-title-actions">
><span class="{{ app.labelTypeClass() }}">{{ app.type }}</span></clr-dg-cell
>
<clr-dg-cell>
<span class="label">
<span class="label version-truncate">
{{ app.version }}
<span *ngIf="app.versions?.length > 1" class="badge badge-light-blue">{{ app.versions?.length }}</span>
</span>
Expand Down
12 changes: 12 additions & 0 deletions ui/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -744,3 +744,15 @@ h1.page-title-actions {
.clr-input-wrapper {
max-width: none;
}

.version-truncate {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline-block;
line-height: 1rem;
&>.badge {
margin: -1px -.45rem 1px .3rem
}
}

0 comments on commit 8d75704

Please sign in to comment.