Image size in slider alerts, PM 28
Posted: 2018-10-07, 04:01
I made the upgrade from 27 to 28, with 60 addons and 60 custombuttons with no problems, except one small detail I hesitate to even mention
The image for slider alerts (showAlertNotification) in PM 27 was styled in alert.css as
and the alert box was sized to fit the size of the image and text used.
In PM 28, they are styled in alert-common.css as
and the image size show is always 80px regardless of actual image size, leaving much space around short text. I've only found one complaint about this from two years ago and it was in connection with Thunderbird.
A solution is to add
to userChrome.css.
Alan
The image for slider alerts (showAlertNotification) in PM 27 was styled in alert.css as
Code: Select all
#alertImage {
max-width: 48px;
max-height: 48px;
list-style-image: url(chrome://global/skin/alerts/notification-48.png);
}
In PM 28, they are styled in alert-common.css as
Code: Select all
#alertImage {
width: 80px;
height: 80px;
max-width: 80px;
max-height: 80px;
object-fit: scale-down;
margin: 0 7px 7px;
}
A solution is to add
Code: Select all
#alertImage {
width: auto !important;
height: auto !important;
max-width: 48px !important;
max-height: 48px !important;
}
Alan