popup: use "height: min-content" instead of the hack
This commit is contained in:
parent
d2b9b30239
commit
d053d78c8f
|
@ -1,9 +1,14 @@
|
||||||
|
html, body {
|
||||||
|
height: min-content;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
width: 252px;
|
width: 252px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.firefox body {
|
.firefox body {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|
|
@ -62,12 +62,6 @@ function initPopup(url) {
|
||||||
|
|
||||||
setPopupWidth();
|
setPopupWidth();
|
||||||
|
|
||||||
// force Chrome to resize the popup
|
|
||||||
if (!FIREFOX) {
|
|
||||||
document.body.style.height = '10px';
|
|
||||||
document.documentElement.style.height = '10px';
|
|
||||||
}
|
|
||||||
|
|
||||||
// action buttons
|
// action buttons
|
||||||
$('#disableAll').onchange = function () {
|
$('#disableAll').onchange = function () {
|
||||||
installed.classList.toggle('disabled', this.checked);
|
installed.classList.toggle('disabled', this.checked);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user