📱 Quick-settings hidden by default on mobile

This commit is contained in:
Alicia Sykes 2021-10-11 21:39:39 +01:00
parent 27a4f9fa5c
commit 6bd6a5ade5
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ export default {
localStorage.setItem(localStorageKeys.HIDE_SETTINGS, this.settingsVisible);
},
getSettingsVisibility() {
const screenWidth = document.body.clientWidth;
if (screenWidth && screenWidth < 600) return false;
return JSON.parse(localStorage[localStorageKeys.HIDE_SETTINGS]
|| (this.visibleComponents || defaultVisibleComponents).settings);
},