From 452af4391687a9835b62d8e764ca03bf82f49102 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Sun, 1 Jan 2023 19:41:46 +0100 Subject: [PATCH] Fix Hidden Settings Menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes several problems of the settings menu related to display on mobile devices or small(ish) windows: - The `isMobileLandscape` is now calculated correctly. Previously, this was set to `true` if a device was in portrait mode. - Showing the button to collapse the settings menu and making the menu collapsible now use the same mechanism. Previously, it could happen that the menu was opened and not fixed, but no button to close it again was shown. - The icons fore opening and closing the settings menu are now both arrows, indicating that their functionality is reversed. - The button to open the menu now always has the string “Settings”, instead of using the name of the current page. The current page hader is listed below that anyway and this is the action component to open the settings menu after all. This fixes #1334 --- client/components/app/ConfigSideNav.vue | 10 ++++++---- client/pages/config.vue | 14 +++++++------- client/store/globals.js | 4 +++- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/client/components/app/ConfigSideNav.vue b/client/components/app/ConfigSideNav.vue index 28c1aa9b..a075fa40 100644 --- a/client/components/app/ConfigSideNav.vue +++ b/client/components/app/ConfigSideNav.vue @@ -1,6 +1,6 @@