mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-15 09:31:28 +03:00
Fixed potential UI bug where notifications menu would be too small
This commit is contained in:
@@ -34,4 +34,10 @@
|
|||||||
|
|
||||||
::ng-deep .mdc-switch {
|
::ng-deep .mdc-switch {
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::ng-deep .notifications-menu {
|
||||||
|
width: 30vw !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
min-width: 280px !important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-6" style="text-align: right; align-items: flex-end; display: inline-block">
|
<div class="col-6" style="text-align: right; align-items: flex-end; display: inline-block">
|
||||||
<button [matMenuTriggerFor]="notificationsMenu" (menuOpened)="notificationMenuOpened()" mat-icon-button><mat-icon [matBadge]="notification_count" matBadgeColor="warn" matBadgeSize="small" *ngIf="notification_count > 0">notifications</mat-icon><mat-icon *ngIf="notification_count === 0">notifications_none</mat-icon></button>
|
<button [matMenuTriggerFor]="notificationsMenu" (menuOpened)="notificationMenuOpened()" mat-icon-button><mat-icon [matBadge]="notification_count" matBadgeColor="warn" matBadgeSize="small" *ngIf="notification_count > 0">notifications</mat-icon><mat-icon *ngIf="notification_count === 0">notifications_none</mat-icon></button>
|
||||||
<mat-menu (close)="notificationMenuClosed()" #notificationsMenu="matMenu">
|
<mat-menu [classList]="'notifications-menu'" (close)="notificationMenuClosed()" #notificationsMenu="matMenu">
|
||||||
<app-notifications #notifications (notificationCount)="notificationCountUpdate($event)" (click)="$event.stopPropagation()"></app-notifications>
|
<app-notifications #notifications (notificationCount)="notificationCountUpdate($event)" (click)="$event.stopPropagation()"></app-notifications>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
<button [matMenuTriggerFor]="menuSettings" mat-icon-button><mat-icon>more_vert</mat-icon></button>
|
<button [matMenuTriggerFor]="menuSettings" mat-icon-button><mat-icon>more_vert</mat-icon></button>
|
||||||
|
|||||||
@@ -8,13 +8,15 @@
|
|||||||
</mat-card-subtitle>
|
</mat-card-subtitle>
|
||||||
<mat-card-title>
|
<mat-card-title>
|
||||||
<ng-container *ngIf="NOTIFICATION_PREFIX[notification.type]">
|
<ng-container *ngIf="NOTIFICATION_PREFIX[notification.type]">
|
||||||
{{NOTIFICATION_PREFIX[notification.type]}}
|
{{NOTIFICATION_PREFIX[notification.type]}}
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</mat-card-title>
|
</mat-card-title>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<ng-container *ngIf="NOTIFICATION_SUFFIX_KEY[notification.type]">
|
<ng-container *ngIf="NOTIFICATION_SUFFIX_KEY[notification.type]">
|
||||||
{{notification['data'][NOTIFICATION_SUFFIX_KEY[notification.type]]}}
|
<div style="word-break: break-word">
|
||||||
|
{{notification['data'][NOTIFICATION_SUFFIX_KEY[notification.type]]}}
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions *ngIf="notification.actions?.length > 0">
|
<mat-card-actions *ngIf="notification.actions?.length > 0">
|
||||||
|
|||||||
Reference in New Issue
Block a user