Skip to content

Build your personal knowledge base with Trilium Notes

fix(llm): sidebar chat box required scrolling to reach

Elian Doran395e79adbf45
diff --git a/apps/client/src/widgets/sidebar/SidebarChat.css b/apps/client/src/widgets/sidebar/SidebarChat.css
index 28109fec73..feee6f7ccd 100644
--- a/apps/client/src/widgets/sidebar/SidebarChat.css
+++ b/apps/client/src/widgets/sidebar/SidebarChat.css
@@ -3,12 +3,18 @@
.sidebar-chat-container {
display: flex;
flex-direction: column;
- height: 100%;
- min-height: 300px;
+ flex: 1;
+ min-height: 0; /* Allow shrinking in flex context */
+ overflow: hidden; /* Contain children within available space */
+}
+
+.sidebar-chat-container .llm-chat-input-form {
+ flex-shrink: 0; /* Keep input bar from shrinking */
}
.sidebar-chat-messages {
flex: 1;
+ min-height: 0; /* Allow flex shrinking for scroll containment */
overflow-y: auto;
padding: 0.5rem;
display: flex;
@@ -36,23 +42,26 @@
}
/* Make the sidebar chat widget grow to fill available space when expanded */
-.widget.grow:not(.collapsed) {
+#right-pane .widget.grow:not(.collapsed) {
+ flex: 1;
+ flex-shrink: 1; /* Override flex-shrink: 0 from main styles */
min-height: 0;
display: flex;
flex-direction: column;
}
-.widget.grow:not(.collapsed) .body-wrapper {
+#right-pane .widget.grow:not(.collapsed) .body-wrapper {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
+ overflow: hidden; /* Override overflow: auto from main styles */
}
-.widget.grow:not(.collapsed) .card-body {
+#right-pane .widget.grow:not(.collapsed) .card-body {
flex: 1;
min-height: 0;
- overflow: hidden;
+ overflow: hidden; /* Override overflow: auto - let child handle scrolling */
display: flex;
flex-direction: column;
}