Skip to content

Commit f4b7a61

Browse files
committed
[DSC-1945] Show container div only when there are message to show, in order to not show empty gap in the item page
1 parent 640bf63 commit f4b7a61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/item-page/alerts/item-alerts.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<div class="py-3">
2-
<div *ngIf="item && !item.isDiscoverable" class="private-warning">
1+
<div *ngIf="item && (!item.isDiscoverable || item.isWithdrawn)" class="pb-3">
2+
<div *ngIf="!item.isDiscoverable" class="private-warning">
33
<ds-alert [type]="AlertTypeEnum.Warning" [content]="'item.alerts.private' | translate"></ds-alert>
44
</div>
5-
<div *ngIf="item && item.isWithdrawn" class="withdrawn-warning">
5+
<div *ngIf="item.isWithdrawn" class="withdrawn-warning">
66
<ds-alert [type]="AlertTypeEnum.Warning">
77
<div class="d-flex justify-content-between flex-wrap flex-column">
88
<span class="align-self-center">{{'item.alerts.withdrawn' | translate}}</span>

0 commit comments

Comments
 (0)