Skip to content

Commit

Permalink
fix custom title case detail header (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbritense authored May 16, 2024
1 parent 3bfe594 commit ca25cc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
let-document="document"
let-canAssign="canAssign"
>
<div class="row" *ngIf="customDossierHeaderItems.length > 0; else defaultTitle">
<div class="row" *ngIf="(customDossierHeaderItems || []).length > 0">
<span
*ngFor="let item of customDossierHeaderItems"
[ngClass]="{
Expand All @@ -71,7 +71,7 @@
h4: item.textSize === 'sm',
h5: item.textSize === 'xs'
}"
class="mb-0 mt-0 pb-2 align-self-end col-xl-{{ item.columnSize }} col-lg-{{
class="mb-0 mt-0 align-self-end col-xl-{{ item.columnSize }} col-lg-{{
item.columnSize * 2
}} {{ item.customClass }}"
>
Expand All @@ -91,10 +91,6 @@
></ng-container>
</ng-template>

<ng-template #defaultTitle>
<div class="row ml-0 mr-0">{{ documentDefinitionNameTitle?.trim() }}</div>
</ng-template>

<ng-template
#caseDetailAssignee
let-canHaveAssignee="canHaveAssignee"
Expand Down Expand Up @@ -150,7 +146,10 @@
caseStatus: caseStatus$ | async
} as obs"
>
<div class="dossier-status-assign" [ngClass]="{'--compact': compactMode$ | async}">
<div
class="dossier-status-assign-custom-title"
[ngClass]="{'--compact': compactMode$ | async}"
>
@if (obs.caseStatus) {
<cds-tag size="sm" [type]="obs.caseStatus.tagType">{{ obs.caseStatus.title }}</cds-tag>
}
Expand All @@ -167,6 +166,8 @@
"
></ng-container>
</div>

<ng-container *ngTemplateOutlet="caseDetailHeader"></ng-container>
</div>

<div class="buttons-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
}

.dossier-status-assign {
.dossier-status-assign-custom-title {
display: flex;
gap: 16px;
align-items: flex-end;
Expand Down

0 comments on commit ca25cc3

Please sign in to comment.