mirror of https://github.com/Lissy93/dashy.git
📱 Quick-settings hidden by default on mobile
This commit is contained in:
parent
27a4f9fa5c
commit
6bd6a5ade5
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue