Skip to content

Commit

Permalink
Add semantic header to page-header.component
Browse files Browse the repository at this point in the history
  • Loading branch information
VirmasaloA committed Aug 15, 2024
1 parent 9e02d6a commit a4116dc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions ui/src/app/shared/components/page-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ import { HistoryBackComponent } from 'src/app/shared/history/history-back.compon
template: `
<div class="row mx-3 mt-4 mb-2 align-items-center">
<div [ngClass]="appendWide ? 'col-md-6' : 'col-md-9'" class="col-s-3">
@if (history) {
<span class="pe-4"><xm-history-back></xm-history-back></span>
}
@if (prependTemplate) {
<ng-container [ngTemplateOutlet]="prependTemplate"></ng-container>
}
<span class="xm-page-header-title">{{ text | translate }}</span>
<div class="d-flex">
@if (history) {
<span class="pe-4"><xm-history-back></xm-history-back></span>
}
@if (prependTemplate) {
<ng-container [ngTemplateOutlet]="prependTemplate"></ng-container>
}
<h1 class="xm-page-header-title">
{{ text | translate }}
</h1>
</div>
</div>
@if (appendTemplate) {
<div [ngClass]="appendWide ? 'col-md-6' : 'col-md-3'">
Expand All @@ -32,6 +36,7 @@ import { HistoryBackComponent } from 'src/app/shared/history/history-back.compon
color: #2c2c2c;
border-bottom: 2px solid #2c7639;
padding-bottom: 7px;
width: fit-content;
}
`,
],
Expand Down

0 comments on commit a4116dc

Please sign in to comment.