diff --git a/src/popup/services/services.module.ts b/src/popup/services/services.module.ts index cbd36ecd72..d5bdf17bdb 100644 --- a/src/popup/services/services.module.ts +++ b/src/popup/services/services.module.ts @@ -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) {