#2109 Notification Popup Scrollverhalten angepasst

This commit is contained in:
Andreas Schickinger
2021-09-29 17:36:05 +02:00
parent 1d42a2cf6c
commit 83c36aff02
4 changed files with 26 additions and 13 deletions

View File

@@ -8,10 +8,12 @@
</div>
<hr />
<ng-container *ngFor="let notification of notifications">
<modal-notifications-list-item [item]="notification" (itemSelected)="itemSelected($event)"></modal-notifications-list-item>
<hr />
</ng-container>
<div class="notification-list scroll-bar">
<ng-container *ngFor="let notification of notifications">
<modal-notifications-list-item [item]="notification" (itemSelected)="itemSelected($event)"></modal-notifications-list-item>
<hr />
</ng-container>
</div>
<div class="actions">
<a class="cta-primary" [routerLink]="['/remission/create']" (click)="navigated.emit()">

View File

@@ -8,10 +8,12 @@
</div>
<hr />
<ng-container *ngFor="let notification of notifications">
<modal-notifications-list-item [item]="notification" (itemSelected)="itemSelected($event)"></modal-notifications-list-item>
<hr />
</ng-container>
<div class="notification-list scroll-bar">
<ng-container *ngFor="let notification of notifications">
<modal-notifications-list-item [item]="notification" (itemSelected)="itemSelected($event)"></modal-notifications-list-item>
<hr />
</ng-container>
</div>
<div class="actions">
<a class="cta-primary" [routerLink]="['/goods/in', 'reservation']" (click)="navigated.emit()">

View File

@@ -8,10 +8,12 @@
</div>
<hr />
<ng-container *ngFor="let notification of notifications">
<modal-notifications-list-item [item]="notification" (itemSelected)="itemSelected($event)"></modal-notifications-list-item>
<hr />
</ng-container>
<div class="notification-list scroll-bar">
<ng-container *ngFor="let notification of notifications">
<modal-notifications-list-item [item]="notification" (itemSelected)="itemSelected($event)"></modal-notifications-list-item>
<hr />
</ng-container>
</div>
<div class="actions">
<a class="cta-primary" [routerLink]="['/task-calendar/calendar']" (click)="navigated.emit()">

View File

@@ -45,6 +45,13 @@ modal-notifications {
width: calc(100% + 2rem);
}
.notification-list {
@apply overflow-y-scroll -ml-4;
max-height: calc(100vh - 400px);
width: calc(100% + 2rem);
overflow-x: hidden;
}
.actions {
@apply grid justify-center mt-8;
@@ -55,7 +62,7 @@ modal-notifications {
}
modal-notifications-list-item {
@apply flex flex-col relative py-1;
@apply flex flex-col relative py-1 px-4;
.notification-headline {
@apply flex flex-row justify-between items-start;