Skip to content

Commit 507e41f

Browse files
fix: ensure proper height reset for collapsed lists in fixHeight function
1 parent 38fbf34 commit 507e41f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/sidebarApps/files/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ export function fixHeight(target) {
104104
if (list === activeFileList) return;
105105

106106
if (target === activeFileList) {
107-
if (list.collapsed) return;
107+
if (list.collapsed) {
108+
list.style.removeProperty("max-height");
109+
list.style.removeProperty("height");
110+
return;
111+
};
108112
target = list;
109113
}
110114

@@ -114,7 +118,11 @@ export function fixHeight(target) {
114118
return;
115119
}
116120

117-
if (list.collapsed) return;
121+
if (list.collapsed) {
122+
list.style.removeProperty("max-height");
123+
list.style.removeProperty("height");
124+
return;
125+
};
118126

119127
list.collapse();
120128
list.style.removeProperty("max-height");

0 commit comments

Comments
 (0)