Limit notifications max with
This commit is contained in:
parent
c5116fb318
commit
26678a65f8
2 changed files with 2 additions and 2 deletions
|
@ -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)"})
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue