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 {
width: 252px;
font-size: 12px;
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
margin: 0;
}
.firefox body {
background-color: #fff;
color: #000;

View File

@ -62,12 +62,6 @@ function initPopup(url) {
setPopupWidth();
// force Chrome to resize the popup
if (!FIREFOX) {
document.body.style.height = '10px';
document.documentElement.style.height = '10px';
}
// action buttons
$('#disableAll').onchange = function () {
installed.classList.toggle('disabled', this.checked);