Permalink
Browse files

bug: NotificationMessage could not create correct text-block-width

  • Loading branch information...
MikeMitterer committed Jan 30, 2017
1 parent d7d05fd commit a2bb60d1362a75866d765b1f55eb142491c0be91
@@ -7861,6 +7861,7 @@ mdl-draggable {
margin-right: 12px; }
.mdl-notification-container .mdl-notification .mdl-notification__content .mdl-notification__text .mdl-notification__avatar + span {
max-width: 262px;
min-width: 1px;
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
font-size: 14px;
font-weight: 400;

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -179,6 +179,10 @@
+ span {
max-width: $notification-width - 62px;
// If not set - Chrome on Mac is not able to calculate the right size
min-width: 1px;
@include typo-body-1($usePreferred: true);
line-height: 130%;
}
@@ -17,7 +17,7 @@ class MaterialAlertDialog extends MaterialDialog {
Validate.notNull(title);
Validate.notBlank(okButton);
this.text = text.replaceAll("\n","<br>");
this.text = text;
this.title = title;
this.okButton = okButton;
return this;
@@ -78,7 +78,7 @@ class MaterialNotification extends MaterialDialog {
this.type = type;
this.title = title;
this.subtitle = subtitle;
this.content = content;
this.content = content.replaceAll(new RegExp("\n",multiLine: true),"<br>");
if(type == NotificationType.ERROR || type == NotificationType.WARNING) {
timeout = LONG_DELAY;

0 comments on commit a2bb60d

Please sign in to comment.