mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-18 11:05:41 +01:00
commit
9063a98949
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user