Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:iphone: Quick-settings hidden by default on mobile

Alicia Sykes6bd6a5ade5d6
diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue
index 60c91ce7..93361d00 100644
--- a/src/components/Settings/SettingsContainer.vue
+++ b/src/components/Settings/SettingsContainer.vue
@@ -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);
},