Add notification messages max-width

This commit is contained in:
shortcutme 2019-08-02 20:11:00 +02:00
parent bb705ae863
commit f40c3e6b81
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 4 additions and 3 deletions

View File

@ -62,7 +62,7 @@ a { color: black }
.notification .message-outer { display: table-row }
.notification .buttons { display: table-cell; vertical-align: top; padding-top: 9px; }
.notification.long .body { padding-top: 10px; padding-bottom: 10px }
.notification .message { display: table-cell; vertical-align: middle; }
.notification .message { display: table-cell; vertical-align: middle; max-width: 400px; white-space: normal; }
.notification.visible { max-width: 350px }

View File

@ -835,7 +835,7 @@ $.extend( $.easing,
};
})(this)), timeout);
}
width = elem.outerWidth();
width = Math.min(elem.outerWidth(), 580);
if (!timeout) {
width += 20;
}
@ -901,6 +901,7 @@ $.extend( $.easing,
}).call(this);
/* ---- src/Ui/media/Wrapper.coffee ---- */
@ -2091,4 +2092,4 @@ $.extend( $.easing,
}
});
}).call(this);
}).call(this);