Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit b716185

Browse files
authored
Merge pull request #2439 from mklanjsek/breadcrumb-layout-fix
Fixed breadcrumbs breaking to 2nd row
2 parents bd0c4c8 + 3558105 commit b716185

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

web/src/app/modules/shared/components/presentation/tabs/tabs.component.html

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
<div class="clr-row clr-align-items-center clr-justify-content-between">
2-
<div class="clr-col-6">
3-
<app-breadcrumb [path]="title"> </app-breadcrumb>
4-
</div>
5-
<div class="clr-col-6">
6-
<div *ngIf="titleComponents?.length > 0" class="title-container">
7-
<div *ngFor="let component of titleComponents; trackBy: trackByIndex" class="item">
8-
<app-view-container [view]="component"></app-view-container>
9-
</div>
1+
<div class="breadcrumb-row">
2+
<app-breadcrumb [path]="title"> </app-breadcrumb>
3+
<div *ngIf="titleComponents?.length > 0" class="title-container">
4+
<div *ngFor="let component of titleComponents; trackBy: trackByIndex" class="item">
5+
<app-view-container [view]="component"></app-view-container>
106
</div>
117
</div>
128
</div>

web/src/app/modules/shared/components/presentation/tabs/tabs.component.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66
outline: none;
77
}
88

9+
.breadcrumb-row {
10+
display: grid;
11+
grid-template-columns: 1fr auto;
12+
}
13+
914
.title-container {
10-
float: right;
1115
display: flex;
1216
justify-content: space-between;
17+
flex-wrap: wrap;
18+
max-width: 10rem;
19+
margin-left: 0.8rem;
1320

1421
.item {
1522
margin: 0 5px;

0 commit comments

Comments
 (0)