Timothy J. Baek hai 6 meses
pai
achega
c5952d62ad
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/lib/components/workspace/Knowledge/Collection.svelte

+ 6 - 0
src/lib/components/workspace/Knowledge/Collection.svelte

@@ -482,6 +482,12 @@
 				const percentage = (300 / width) * 100;
 				const percentage = (300 / width) * 100;
 				// set the minSize to the percentage, must be an integer
 				// set the minSize to the percentage, must be an integer
 				minSize = !largeScreen ? 100 : Math.floor(percentage);
 				minSize = !largeScreen ? 100 : Math.floor(percentage);
+
+				if (showSidepanel) {
+					if (pane && pane.isExpanded() && pane.getSize() < minSize) {
+						pane.resize(minSize);
+					}
+				}
 			}
 			}
 		});
 		});