From 38fbf34f9b4c61d9f2711ac2ecb15ec72979e6ba Mon Sep 17 00:00:00 2001 From: Emmanuel Lobo <76094069+UnschooledGamer@users.noreply.github.com> Date: Sun, 31 Aug 2025 22:59:27 +0530 Subject: [PATCH 1/3] Update style.scss --- src/components/sidebar/style.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/sidebar/style.scss b/src/components/sidebar/style.scss index fb63c72a5..77ad67d91 100644 --- a/src/components/sidebar/style.scss +++ b/src/components/sidebar/style.scss @@ -139,8 +139,8 @@ body.no-animation { max-height: 100%; &.hidden { - max-height: 30px; - min-height: 30px; + max-height: 30px !important; + min-height: 30px !important; overflow: hidden !important; } @@ -321,4 +321,4 @@ body.no-animation { background-color: var(--border-color); margin: 4px 0; } -} \ No newline at end of file +} From 507e41f3f3b7f7ab372faaeda967b9e760abc222 Mon Sep 17 00:00:00 2001 From: Emmanuel Lobo <76094069+UnschooledGamer@users.noreply.github.com> Date: Mon, 1 Sep 2025 04:53:55 +0000 Subject: [PATCH 2/3] fix: ensure proper height reset for collapsed lists in fixHeight function --- src/sidebarApps/files/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sidebarApps/files/index.js b/src/sidebarApps/files/index.js index 9b8c3332a..205170e94 100644 --- a/src/sidebarApps/files/index.js +++ b/src/sidebarApps/files/index.js @@ -104,7 +104,11 @@ export function fixHeight(target) { if (list === activeFileList) return; if (target === activeFileList) { - if (list.collapsed) return; + if (list.collapsed) { + list.style.removeProperty("max-height"); + list.style.removeProperty("height"); + return; + }; target = list; } @@ -114,7 +118,11 @@ export function fixHeight(target) { return; } - if (list.collapsed) return; + if (list.collapsed) { + list.style.removeProperty("max-height"); + list.style.removeProperty("height"); + return; + }; list.collapse(); list.style.removeProperty("max-height"); From 73fe2eacab2f25350dc0fc840026198cb3f200e8 Mon Sep 17 00:00:00 2001 From: Emmanuel Lobo <76094069+UnschooledGamer@users.noreply.github.com> Date: Mon, 1 Sep 2025 05:14:20 +0000 Subject: [PATCH 3/3] chore: format --- src/sidebarApps/files/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sidebarApps/files/index.js b/src/sidebarApps/files/index.js index 205170e94..1c9e900ec 100644 --- a/src/sidebarApps/files/index.js +++ b/src/sidebarApps/files/index.js @@ -105,10 +105,10 @@ export function fixHeight(target) { if (target === activeFileList) { if (list.collapsed) { - list.style.removeProperty("max-height"); - list.style.removeProperty("height"); + list.style.removeProperty("max-height"); + list.style.removeProperty("height"); return; - }; + } target = list; } @@ -119,10 +119,10 @@ export function fixHeight(target) { } if (list.collapsed) { - list.style.removeProperty("max-height"); - list.style.removeProperty("height"); + list.style.removeProperty("max-height"); + list.style.removeProperty("height"); return; - }; + } list.collapse(); list.style.removeProperty("max-height");