1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Merge pull request #1627 from emindeniz99/master

fix popup height
This commit is contained in:
Chad Scharf
2021-03-12 15:16:41 -05:00
committed by GitHub

View File

@@ -79,10 +79,14 @@ 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');
} 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');
}
if (BrowserApi.getBackgroundPage() != null) {