popup: use "height: min-content" instead of the hack

This commit is contained in:
tophf 2017-11-08 06:47:55 +03:00
parent d2b9b30239
commit d053d78c8f
2 changed files with 5 additions and 6 deletions

View File

@ -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;

View File

@ -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);