Skip to content

Commit

Permalink
fix(admin-ui): Fix styling for very long breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jun 13, 2023
1 parent 163db15 commit 44c2c88
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<vdr-breadcrumb></vdr-breadcrumb>
</div>
<div class="universal-search flex-spacer"></div>
<div class="mr-1">
<div class="mx-1">
<vdr-alerts></vdr-alerts>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav role="navigation">
<ul class="breadcrumbs">
<li *ngFor="let breadcrumb of breadcrumbs$ | async; let isLast = last">
<li *ngFor="let breadcrumb of breadcrumbs$ | async; let isLast = last" [title]="breadcrumb.label">
<a [routerLink]="breadcrumb.link" *ngIf="!isLast">{{ breadcrumb.label | translate }}</a>
<ng-container *ngIf="!isLast"
><clr-icon shape="caret right" class="color-weight-400 mx-1"></clr-icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
.breadcrumbs {
list-style-type: none;
display: flex;
flex-wrap: wrap;
align-items: center;
overflow-x: auto;
max-width: 100vw;
line-height: 100%;
height: 40px;
min-height: 40px;
padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2.5);
font-size: var(--font-size-sm);
background-color: var(--color-page-header-item-bg);
Expand All @@ -27,6 +28,10 @@
&:last-child {
font-weight: 600;
}

max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
}
}
.breadcrumbs:not(.mobile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

:host {
display: inline-block;
overflow: hidden;
}

.wrapper {
Expand Down

0 comments on commit 44c2c88

Please sign in to comment.