Skip to content

Commit a531cb8

Browse files
Merge pull request Acode-Foundation#1572 from UnschooledGamer/patch-2
revert: sidebar/style.scss changes to fix collapse folders
2 parents a38f019 + 73fe2ea commit a531cb8

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/components/sidebar/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ body.no-animation {
139139
max-height: 100%;
140140

141141
&.hidden {
142-
max-height: 30px;
143-
min-height: 30px;
142+
max-height: 30px !important;
143+
min-height: 30px !important;
144144
overflow: hidden !important;
145145
}
146146

@@ -321,4 +321,4 @@ body.no-animation {
321321
background-color: var(--border-color);
322322
margin: 4px 0;
323323
}
324-
}
324+
}

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)