From 6bd6a5ade5d6c5e0f25b95e4eefa1f60e2082501 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 11 Oct 2021 21:39:39 +0100 Subject: [PATCH] :iphone: Quick-settings hidden by default on mobile --- src/components/Settings/SettingsContainer.vue | 2 ++ 1 file changed, 2 insertions(+) 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); },