Skip to content

Build your personal knowledge base with Trilium Notes

fix(llm): sidebar not collapsing properly

Elian Doranad1b3df74ef2
diff --git a/apps/client/src/widgets/sidebar/SidebarChat.css b/apps/client/src/widgets/sidebar/SidebarChat.css
index 42c6a94834..bc52434405 100644
--- a/apps/client/src/widgets/sidebar/SidebarChat.css
+++ b/apps/client/src/widgets/sidebar/SidebarChat.css
@@ -149,22 +149,21 @@
cursor: not-allowed;
}
-/* Make the widget grow to fill available space */
-.widget.grow {
- flex: 1;
+/* Make the sidebar chat widget grow to fill available space when expanded */
+.widget.grow:not(.collapsed) {
min-height: 0;
display: flex;
flex-direction: column;
}
-.widget.grow .body-wrapper {
+.widget.grow:not(.collapsed) .body-wrapper {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
-.widget.grow .card-body {
+.widget.grow:not(.collapsed) .card-body {
flex: 1;
min-height: 0;
overflow: hidden;