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.

feat: Improve mobile UI responsiveness and fix CSS issues

LearningCircuit62db62351b4b
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 efae746c27..78c3ee798d 100644
--- a/src/local_deep_research/web/static/css/custom_dropdown.css
+++ b/src/local_deep_research/web/static/css/custom_dropdown.css
@@ -455,3 +455,25 @@ legend {
font-size: 0.85rem;
color: var(--text-muted, #8a8aa0);
}
+
+/* Mobile responsive styles for keyboard shortcuts */
+@media (max-width: 767px) {
+ .ldr-keyboard-shortcut-hint .ldr-hint-text {
+ font-size: 1rem; /* Increase from 0.9rem to 1rem on mobile */
+ }
+
+ .ldr-keyboard-shortcut-hint kbd {
+ font-size: 1rem; /* Increase from 0.875rem to 1rem on mobile */
+ padding: 0.3rem 0.5rem; /* Slightly larger padding for better touch */
+ }
+
+ .ldr-results-keyboard-hint .ldr-hint-text {
+ font-size: 0.95rem; /* Increase from 0.85rem on mobile */
+ }
+
+ /* Make the whole hint area larger for better visibility */
+ .ldr-keyboard-shortcut-hint {
+ padding: 0.75rem;
+ margin-top: 1.25rem;
+ }
+}
diff --git a/src/local_deep_research/web/static/css/settings.css b/src/local_deep_research/web/static/css/settings.css
index f80af2fdcb..b35ec41030 100644
--- a/src/local_deep_research/web/static/css/settings.css
+++ b/src/local_deep_research/web/static/css/settings.css
@@ -1340,3 +1340,34 @@
color: var(--text-muted);
font-style: italic;
}
+
+/* Mobile responsive styles */
+@media (max-width: 767px) {
+ .ldr-settings-tabs {
+ padding-bottom: 0.5rem;
+ /* Add visual scroll indicator */
+ box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.3);
+ }
+
+ .ldr-settings-tab {
+ flex-shrink: 0; /* Prevent tabs from shrinking */
+ min-width: fit-content;
+ font-size: 0.9rem;
+ padding: 0.5rem 1rem;
+ }
+
+ /* Make it clear the tabs are scrollable */
+ .ldr-settings-tabs::-webkit-scrollbar {
+ height: 6px;
+ }
+
+ .ldr-settings-tabs::-webkit-scrollbar-track {
+ background: var(--bg-tertiary);
+ border-radius: 3px;
+ }
+
+ .ldr-settings-tabs::-webkit-scrollbar-thumb {
+ background: var(--accent-primary);
+ border-radius: 3px;
+ }
+}
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 42708814b4..bf57f42522 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -1209,6 +1209,12 @@ textarea:focus, input[type="text"]:focus {
padding-bottom: 60px; /* Add padding to body for the tab bar */
}
+ /* Hide desktop sidebar completely on mobile */
+ aside.ldr-sidebar {
+ display: none !important;
+ visibility: hidden !important;
+ }
+
.ldr-main-content {
margin-left: 0;
width: 100%;
@@ -1237,25 +1243,21 @@ textarea:focus, input[type="text"]:focus {
padding-bottom: calc(42vh + 60px); /* Log panel + mobile tab bar */
}
- /* Hide sidebar by default on mobile */
- .ldr-sidebar {
+ /* Sidebar toggle for mobile menu (hamburger menu) - only show when explicitly activated */
+ .ldr-sidebar.active {
+ display: block !important;
position: fixed;
top: 0;
left: 0;
width: 240px;
height: 100vh;
- transform: translateX(-100%);
+ transform: translateX(0);
transition: transform 0.3s ease-in-out;
- z-index: 1100; /* High z-index to ensure it appears above content */
+ z-index: 1100;
background-color: var(--bg-secondary);
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}
- /* Show sidebar when active */
- .ldr-sidebar.active {
- transform: translateX(0);
- }
-
/* Overlay/backdrop for mobile sidebar */
.ldr-sidebar-overlay {
display: none;
diff --git a/tests/ui_tests/test_responsive_ui_comprehensive.js b/tests/ui_tests/test_responsive_ui_comprehensive.js
index db29ab44b8..c1abac1f27 100644
--- a/tests/ui_tests/test_responsive_ui_comprehensive.js
+++ b/tests/ui_tests/test_responsive_ui_comprehensive.js
@@ -41,6 +41,9 @@ class ResponsiveUITester {
if (!process.env.CI && !fs.existsSync(this.screenshotsDir)) {
fs.mkdirSync(this.screenshotsDir, { recursive: true });
}
+
+ // Visual mode for debugging
+ this.visualMode = process.env.VISUAL_MODE === 'true' || process.env.HEADLESS === 'false';
}
async init() {