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 +} diff --git a/src/sidebarApps/files/index.js b/src/sidebarApps/files/index.js index 9b8c3332a..1c9e900ec 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");