Make every notification 20px wider

This commit is contained in:
Zola Gonano 2021-12-20 13:56:49 +00:00
parent f28d458b60
commit a4e98bed57

View file

@ -51,7 +51,7 @@ class Notifications
), timeout
# Animate
width = Math.min(elem.outerWidth() + 50, 580)
width = Math.min(elem.outerWidth() + 70, 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)"})