Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Advanced Options panel scrolling with CSS Grid (#2354)

LearningCircuita2ebbebbc951
diff --git a/src/local_deep_research/web/static/css/custom_dropdown.css b/src/local_deep_research/web/static/css/custom_dropdown.css
index 8476bb1462..a7fd1dbec9 100644
--- a/src/local_deep_research/web/static/css/custom_dropdown.css
+++ b/src/local_deep_research/web/static/css/custom_dropdown.css
@@ -242,21 +242,23 @@ body.ldr-dropdown-active {
.ldr-advanced-options-panel {
position: relative;
z-index: 1; /* Lower than dropdowns */
- transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.3s ease-in-out;
- max-height: 0;
- overflow: hidden; /* Keep hidden when collapsed */
+ display: grid;
+ grid-template-rows: 0fr;
opacity: 0;
+ visibility: hidden;
+ pointer-events: none;
margin-top: 0;
margin-bottom: 0;
- display: block !important; /* Always display but use max-height/opacity for animation */
+ transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
}
.ldr-advanced-options-panel.expanded {
- max-height: 1000px; /* Large enough to fit all content */
+ grid-template-rows: 1fr;
opacity: 1;
+ visibility: visible;
+ pointer-events: auto;
margin-bottom: 1.5rem;
margin-top: 0.5rem;
- overflow: visible; /* Allow dropdowns to overflow when expanded */
}
/* Make dropdowns in advanced panel appear more quickly when expanded */
diff --git a/src/local_deep_research/web/static/css/mobile-responsive.css b/src/local_deep_research/web/static/css/mobile-responsive.css
index 3474c100ad..1df4f65212 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -1174,7 +1174,6 @@
/* Advanced options panel should not overflow */
.ldr-advanced-options-panel {
max-width: 100% !important;
- overflow-x: hidden !important;
padding: 1rem !important;
}
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 9297a5d3cc..1562d4a5d3 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -2198,31 +2198,28 @@ textarea:focus, input[type="text"]:focus {
}
.ldr-advanced-options-panel {
+ display: grid;
+ grid-template-rows: 0fr;
background-color: rgba(var(--bg-tertiary-rgb), 0.5);
border-radius: 8px;
padding: 0 1.5rem;
margin-bottom: 1.5rem;
border: 1px solid var(--border-color);
box-shadow: inset 0 2px 10px rgba(var(--shadow-color-rgb), 0.1);
- max-height: 0;
- overflow: hidden;
opacity: 0;
visibility: hidden;
pointer-events: none;
- transition: all 0.3s ease;
+ transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
}
-/* Allow form controls to be interactive even when panel is collapsed */
-.ldr-advanced-options-panel select,
-.ldr-advanced-options-panel input,
-.ldr-advanced-options-panel button,
-.ldr-advanced-options-panel textarea {
- pointer-events: auto;
+.ldr-advanced-options-inner {
+ min-height: 0;
+ overflow: hidden;
}
.ldr-advanced-options-toggle.ldr-open + .ldr-advanced-options-panel,
.ldr-advanced-options-panel.ldr-expanded {
- max-height: 1000px;
+ grid-template-rows: 1fr;
opacity: 1;
visibility: visible;
pointer-events: auto;
diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.js
index 1d6624d129..e0b668edc5 100644
--- a/src/local_deep_research/web/static/js/components/research.js
+++ b/src/local_deep_research/web/static/js/components/research.js
@@ -280,7 +280,6 @@
// Set initial state of the advanced options panel based on localStorage
const savedState = localStorage.getItem('advancedMenuOpen') === 'true';
if (savedState && advancedPanel) {
- advancedPanel.style.display = 'block';
advancedPanel.classList.add('ldr-expanded');
if (advancedToggle) {
advancedToggle.classList.add('ldr-open');
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index 45d2bb457b..3e1aece339 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -78,6 +78,7 @@
</button>
<div class="ldr-advanced-options-panel" id="advanced-options-panel" aria-labelledby="advanced-options-toggle">
+ <div class="ldr-advanced-options-inner">
<div class="ldr-form-row">
<!-- Model Provider Selection -->
<div class="ldr-form-group ldr-half">
@@ -243,6 +244,7 @@
</div>
</div>
+ </div>
</div>
<!-- Start Research Button -->