Merge pull request #1714 from bitwarden/revert-popup-height-fix

Revert "Merge pull request #1627 from emindeniz99/master"
This commit is contained in:
Thomas Rittson 2021-03-19 08:06:21 +10:00 committed by GitHub
commit 3df4657faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -74,16 +74,12 @@ 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) {
} 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) {
await stateService.save(ConstantsService.disableFaviconKey,
await storageService.get<boolean>(ConstantsService.disableFaviconKey));