Revert "Merge pull request #1627 from emindeniz99/master"

This reverts commit 9063a98949, reversing
changes made to 540ca5d204.
This commit is contained in:
Thomas Rittson 2021-03-17 11:02:19 +10:00
parent e0f4386042
commit 626145e492
1 changed files with 4 additions and 8 deletions

View File

@ -74,14 +74,10 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
return async () => {
if (!popupUtilsService.inPopup(window)) {
window.document.body.classList.add('body-full');
} else {
if (window.screen.availHeight < 600) {
window.document.body.classList.add('body-xs');
} else if (window.screen.availHeight <= 800) {
window.document.body.classList.add('body-sm');
}
document.body.style.setProperty('height', `${window.innerHeight}px`, 'important');
} else if (window.screen.availHeight < 600) {
window.document.body.classList.add('body-xs');
} else if (window.screen.availHeight <= 800) {
window.document.body.classList.add('body-sm');
}
if (BrowserApi.getBackgroundPage() != null) {