Limit notifications max with

This commit is contained in:
shortcutme 2019-08-02 16:15:45 +02:00
parent c5116fb318
commit 26678a65f8
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class Notifications
), timeout
# Animate
width = elem.outerWidth()
width = Math.min(elem.outerWidth(), 580)
if not timeout then width += 20 # Add space for close button
if elem.outerHeight() > 55 then elem.addClass("long")
elem.css({"width": "50px", "transform": "scale(0.01)"})

View file

@ -58,7 +58,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 }