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.

ui(css): improve responsive baseline — touch targets + readable text (#3985)

LearningCircuit511e3abb029d
diff --git a/src/local_deep_research/web/static/css/benchmark.css b/src/local_deep_research/web/static/css/benchmark.css
index 12352af7f8..9b3d58fad3 100644
--- a/src/local_deep_research/web/static/css/benchmark.css
+++ b/src/local_deep_research/web/static/css/benchmark.css
@@ -948,7 +948,9 @@
border-radius: 6px;
color: var(--text-primary);
font-size: 0.875rem;
- min-height: 38px;
+ /* Bumped from 38px to 44px to meet the touch-target floor at all
+ viewports (was Bootstrap-era leftover). */
+ min-height: 44px;
}
.ldr-filter-group select:hover,
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 79232de22d..83e5dd59b8 100644
--- a/src/local_deep_research/web/static/css/custom_dropdown.css
+++ b/src/local_deep_research/web/static/css/custom_dropdown.css
@@ -165,8 +165,11 @@ body.ldr-dropdown-active {
display: flex;
align-items: center;
justify-content: center;
- width: 38px;
- height: 38px;
+ /* Bumped from 38×38 to 44×44 to meet the touch-target floor without
+ requiring a media-query override. Apple HIG minimum; Material would
+ prefer 48 — left a comment so a future bump is intentional. */
+ min-width: 44px;
+ min-height: 44px;
background-color: var(--bg-tertiary, #2a2a3a);
border: 1px solid var(--border-color, #343452);
border-radius: 6px;
diff --git a/src/local_deep_research/web/static/css/library.css b/src/local_deep_research/web/static/css/library.css
index 2318090a7a..0e4f2906d1 100644
--- a/src/local_deep_research/web/static/css/library.css
+++ b/src/local_deep_research/web/static/css/library.css
@@ -188,7 +188,10 @@
}
.ldr-library-filters-row label {
- font-size: 11px;
+ /* 11px → --text-xs (12px). Was below the readability floor; bumping to
+ the design-token minimum keeps the same compact look without
+ failing accessibility heuristics. */
+ font-size: var(--text-xs);
}
/* Mobile responsive: wrap search and filter rows */
@@ -485,7 +488,9 @@
padding: 2px 8px;
background: var(--bg-tertiary, #333);
border-radius: 12px;
- font-size: 11px;
+ /* 11px → --text-xs (12px) per readability floor. Tag chips stay
+ compact at 12px; the visual difference is one pixel. */
+ font-size: var(--text-xs);
color: var(--text-secondary, #999);
}
diff --git a/src/local_deep_research/web/static/css/mobile-navigation.css b/src/local_deep_research/web/static/css/mobile-navigation.css
index 29a82d77de..35c5ce78ae 100644
--- a/src/local_deep_research/web/static/css/mobile-navigation.css
+++ b/src/local_deep_research/web/static/css/mobile-navigation.css
@@ -112,9 +112,12 @@
transform: scale(0.9);
}
-/* Tab label */
+/* Tab label.
+ 12px (= --text-xs) is the readability floor enforced by
+ test_responsive_ui_comprehensive.js. Bottom-nav labels stay
+ visually compact at 12px; the difference vs 11px is one pixel. */
.ldr-mobile-nav-label {
- font-size: 11px;
+ font-size: var(--text-xs);
font-weight: 500;
letter-spacing: 0.01em;
}
@@ -272,7 +275,8 @@
.ldr-mobile-sheet-badge {
background: var(--mobile-nav-active);
color: white;
- font-size: 11px;
+ /* 11px → --text-xs (12px), readability floor. */
+ font-size: var(--text-xs);
font-weight: 600;
padding: 2px 6px;
border-radius: 10px;
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 4d4924e9df..66ea2bb898 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -169,9 +169,31 @@
font-size: 15px;
}
+ /* Custom-classed clickables that aren't .btn / button.
+ The responsive UI test queries `'button, a, input, select, textarea'`
+ and flags any below 44×44. The selectors below cover prominent
+ button-like links across pages so they hit the touch-target floor
+ on mobile. Inline text links (bare <a> in flowing prose) are
+ deliberately not bumped — that would ruin reading layout. */
+ .ldr-nav-link-btn,
+ .ldr-time-range-btn,
+ .ldr-action-btn,
+ .ldr-filter-btn,
+ .ldr-tab-btn,
+ .ldr-settings-tab,
+ .ldr-custom-dropdown-toggle,
+ .ldr-pagination-btn {
+ min-height: 44px;
+ min-width: 44px;
+ display: inline-flex;
+ align-items: center;
+ padding: 10px 16px;
+ }
+
/* Small icon buttons */
.ldr-icon-button,
- .ldr-btn-icon {
+ .ldr-btn-icon,
+ .ldr-icon-btn {
width: 44px;
height: 44px;
display: inline-flex;
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index c502ac7310..9541ad5817 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -342,7 +342,9 @@ a:hover {
background-color: var(--bg-tertiary);
padding: 0.1rem 0.3rem;
border-radius: 3px;
- font-size: 0.7rem;
+ /* 0.7rem (~11.2px) → --text-xs (12px). Readability floor enforced by
+ test_responsive_ui_comprehensive.js. */
+ font-size: var(--text-xs);
border: 1px solid var(--border-color);
}
@@ -353,7 +355,9 @@ a:hover {
.ldr-sidebar-section-label {
padding: 0.25rem 1rem 0.125rem 1rem;
- font-size: 0.65rem;
+ /* 0.65rem (~10.4px) → --text-xs (12px). Sidebar dividers stay
+ visually compact at 12px uppercase + letter-spacing. */
+ font-size: var(--text-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
@@ -848,7 +852,8 @@ textarea:focus, input[type="text"]:focus {
}
.ldr-mode-badge {
- font-size: 0.65rem;
+ /* 0.65rem → --text-xs. Mode badge stays compact at 12px uppercase. */
+ font-size: var(--text-xs);
font-weight: 600;
text-transform: uppercase;
background-color: var(--warning-color);
@@ -1604,7 +1609,9 @@ textarea:focus, input[type="text"]:focus {
}
.ldr-sidebar-section-label {
padding: 0.2rem 1rem 0.1rem 1rem;
- font-size: 0.6rem;
+ /* Was 0.6rem on short screens; bump to 12px floor. The padding is
+ what saves vertical space, not the font-size. */
+ font-size: var(--text-xs);
}
}
@@ -1629,7 +1636,8 @@ textarea:focus, input[type="text"]:focus {
}
.ldr-sidebar-section-label {
padding: 0.15rem 0.75rem 0.1rem 0.75rem;
- font-size: 0.55rem;
+ /* Was 0.55rem on very short screens; bump to 12px floor. */
+ font-size: var(--text-xs);
}
.ldr-sidebar-footer {
padding: 0.5rem 0.75rem;