mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
add size adjustment classes
This commit is contained in:
@@ -60,10 +60,15 @@ export const authService = new AuthService(getBgService<CryptoService>('cryptoSe
|
|||||||
|
|
||||||
export function initFactory(i18nService: I18nService, storageService: StorageService): Function {
|
export function initFactory(i18nService: I18nService, storageService: StorageService): Function {
|
||||||
return async () => {
|
return async () => {
|
||||||
const htmlEl = window.document.documentElement;
|
if (window.screen.availHeight < 600) {
|
||||||
|
window.document.body.classList.add('xs');
|
||||||
|
} else if (window.screen.availHeight <= 800) {
|
||||||
|
window.document.body.classList.add('sm');
|
||||||
|
}
|
||||||
|
|
||||||
if (i18nService != null) {
|
if (i18nService != null) {
|
||||||
|
window.document.documentElement.classList.add('locale_' + i18nService.translationLocale);
|
||||||
authService.init();
|
authService.init();
|
||||||
htmlEl.classList.add('locale_' + i18nService.translationLocale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stateService.save(ConstantsService.disableFaviconKey,
|
stateService.save(ConstantsService.disableFaviconKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user