UI: Fix show long notification

This commit is contained in:
Vladyslav_Prykhodko 2023-03-20 11:44:08 +02:00
parent 3f531d8235
commit 016b4efeea
2 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: rgba(0, 0, 0, 0.76); color: rgba(0, 0, 0, 0.76);
word-break: break-word;
} }
.button { .button {

View File

@ -142,6 +142,8 @@ export class NotificationComponent implements OnInit {
notificationIconColor(): object { notificationIconColor(): object {
if (this.notification.type === NotificationType.ALARM) { if (this.notification.type === NotificationType.ALARM) {
return {color: AlarmSeverityNotificationColors.get(this.notification.info.alarmSeverity)}; return {color: AlarmSeverityNotificationColors.get(this.notification.info.alarmSeverity)};
} else if (this.notification.type === NotificationType.RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT) {
return {color: '#D12730'};
} }
return null; return null;
} }