~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(mobile): improve checkbox touch targets and accessibility labels
LearningCircuitfb151423f199
diff --git a/src/local_deep_research/web/static/css/mobile-responsive.css b/src/local_deep_research/web/static/css/mobile-responsive.cssindex be0da0156f..bfc57d2aab 100644--- a/src/local_deep_research/web/static/css/mobile-responsive.css+++ b/src/local_deep_research/web/static/css/mobile-responsive.css@@ -1213,3 +1213,27 @@max-width: 100% !important;}}++/* =============================================+ 28. Metrics Links - ensure 44px touch targets+ ============================================= */+@media (max-width: 767px) {+ /* Metric links (e.g., "Start research" link) */+ .ldr-metric-link,+ a[href*="/metrics/"],+ #metrics a:not(.btn):not([class*="button"]),+ .ldr-metrics-page a:not(.btn):not([class*="button"]) {+ min-height: 44px;+ display: inline-flex;+ align-items: center;+ padding: 0.5rem 0;+ }++ /* Metric card links */+ .ldr-metric-card a,+ .ldr-stat-card a {+ min-height: 44px;+ display: inline-flex;+ align-items: center;+ }+}diff --git a/src/local_deep_research/web/static/css/settings-mobile-fix.css b/src/local_deep_research/web/static/css/settings-mobile-fix.cssindex 775caf6a0a..5ca972ab52 100644--- a/src/local_deep_research/web/static/css/settings-mobile-fix.css+++ b/src/local_deep_research/web/static/css/settings-mobile-fix.css@@ -254,11 +254,81 @@align-items: center;}- /* Checkbox and toggle improvements */- input[type="checkbox"],- input[type="radio"] {+ /* =============================================+ Enhanced Checkbox Touch Targets for Settings+ WCAG 2.5.8: 24px minimum (AA) - checkboxes meet this+ Best practice: 44px touch target via padding + clickable labels+ ============================================= */++ /* Settings item row - make entire row tappable */+ #settings .ldr-settings-item,+ .ldr-settings-container .ldr-settings-item {+ display: flex;+ flex-direction: column;+ min-height: 44px;+ padding: 8px 12px;+ margin: 4px 0;+ border-radius: 6px;+ }++ /* Checkbox label container - make entire row clickable */+ #settings .ldr-checkbox-label,+ .ldr-settings-container .ldr-checkbox-label {+ display: flex;+ align-items: center;+ min-height: 44px;+ padding: 8px 0;+ cursor: pointer;+ border-radius: 6px;+ transition: background-color 0.15s ease;+ }++ #settings .ldr-checkbox-label:hover,+ .ldr-settings-container .ldr-checkbox-label:hover {+ background-color: var(--bg-tertiary);+ }++ #settings .ldr-checkbox-label:active,+ .ldr-settings-container .ldr-checkbox-label:active {+ background-color: var(--bg-secondary);+ }++ /* Checkbox styling - visual size 24x24, touch via clickable label */+ #settings input[type="checkbox"],+ #settings input[type="radio"],+ .ldr-checkbox-label input[type="checkbox"],+ .ldr-checkbox-label input[type="radio"] {+ /* Visual size meets WCAG 2.5.8 minimum (24x24) */min-width: 24px;min-height: 24px;+ width: 24px;+ height: 24px;+ margin: 0 12px 0 0;+ /* Visual feedback */+ cursor: pointer;+ accent-color: var(--accent-primary);+ /* Allow overflow for touch target */+ flex-shrink: 0;+ }++ /* Make checkbox text labels (now <label> elements) fill space */+ #settings .ldr-checkbox-text,+ .ldr-checkbox-label label.ldr-checkbox-text {+ flex: 1;+ cursor: pointer;+ padding: 8px 0;+ min-height: 28px;+ display: flex;+ align-items: center;+ line-height: 1.4;+ }++ /* JSON property items with checkboxes */+ .ldr-json-property-item .ldr-checkbox-label {+ min-height: 44px;+ padding: 4px 8px;+ margin: 2px 0;+ border-radius: 6px;}/* Toggle switch touch area */diff --git a/src/local_deep_research/web/templates/components/settings_form.html b/src/local_deep_research/web/templates/components/settings_form.htmlindex 56b9b179d2..26d2f22592 100644--- a/src/local_deep_research/web/templates/components/settings_form.html+++ b/src/local_deep_research/web/templates/components/settings_form.html@@ -50,7 +50,7 @@data-hidden-fallback="{{ setting_id }}_{{ key }}_hidden_fallback"{% if value %}checked{% endif %}{% if not setting.editable %}disabled{% endif %}>- <span class="ldr-checkbox-text">{{ key|replace("_", " ")|title }}</span>+ <label for="{{ setting_id }}_{{ key }}" class="ldr-checkbox-text">{{ key|replace("_", " ")|title }}</label></div>{% elif value is number %}<input type="number"@@ -145,7 +145,7 @@{% if not setting.editable %}disabled{% endif %}class="ldr-settings-checkbox"data-hidden-fallback="{{ setting_id }}_hidden_fallback">- <span class="ldr-checkbox-text">{{ setting.name }}</span>+ <label for="{{ setting_id }}" class="ldr-checkbox-text">{{ setting.name }}</label></div>{% elif setting.ui_element == "slider" or setting.ui_element == "range" %}@@ -247,7 +247,7 @@data-hidden-fallback="{{ setting_id }}_{{ key }}_hidden_fallback"{% if value %}checked{% endif %}{% if not setting.editable %}disabled{% endif %}>- <span class="ldr-checkbox-text">{{ key|replace("_", " ")|title }}</span>+ <label for="{{ setting_id }}_{{ key }}" class="ldr-checkbox-text">{{ key|replace("_", " ")|title }}</label></div>{% elif value is number %}<input type="number"diff --git a/src/local_deep_research/web/templates/pages/library.html b/src/local_deep_research/web/templates/pages/library.htmlindex 0f3e07613e..1bc56910e7 100644--- a/src/local_deep_research/web/templates/pages/library.html+++ b/src/local_deep_research/web/templates/pages/library.html@@ -106,8 +106,8 @@<div class="filter-row"><!-- Collection Filter --><div class="filter-group">- <label>Collection</label>- <select id="filter-collection" class="form-control">+ <label for="filter-collection">Collection</label>+ <select id="filter-collection" class="form-control" aria-label="Filter by collection"><option value="">All Collections</option>{% for collection in collections %}<option value="{{ collection.id }}" {% if selected_collection == collection.id %}selected{% endif %}>@@ -119,8 +119,8 @@<!-- Domain Filter --><div class="filter-group">- <label>Domain</label>- <select id="filter-domain" class="form-control">+ <label for="filter-domain">Domain</label>+ <select id="filter-domain" class="form-control" aria-label="Filter by domain"><option value="">All Domains</option><option value="arxiv.org">arXiv</option><option value="pubmed">PubMed</option>@@ -134,8 +134,8 @@<!-- Research Filter --><div class="filter-group">- <label>Research</label>- <select id="filter-research" class="form-control">+ <label for="filter-research">Research</label>+ <select id="filter-research" class="form-control" aria-label="Filter by research"><option value="">All Research</option>{% for research in research_list %}<option value="{{ research.id }}">{{ research.title or research.query[:50] }}</option>@@ -145,8 +145,8 @@<!-- Date Filter --><div class="filter-group">- <label>Downloaded</label>- <select id="filter-date" class="form-control">+ <label for="filter-date">Downloaded</label>+ <select id="filter-date" class="form-control" aria-label="Filter by download date"><option value="">All Time</option><option value="today">Today</option><option value="week">This Week</option>@@ -156,9 +156,9 @@<!-- Search --><div class="filter-group flex-grow">- <label>Search</label>+ <label for="search-documents">Search</label><input type="text" id="search-documents" class="form-control"- placeholder="Search titles, authors, DOI...">+ placeholder="Search titles, authors, DOI..." aria-label="Search documents"></div><!-- View Toggle -->diff --git a/src/local_deep_research/web/templates/pages/news.html b/src/local_deep_research/web/templates/pages/news.htmlindex b9b0ee358d..899d9d2926 100644--- a/src/local_deep_research/web/templates/pages/news.html+++ b/src/local_deep_research/web/templates/pages/news.html@@ -82,7 +82,7 @@<div class="ldr-filters-bar"><div class="ldr-filter-section"><div class="ldr-subscriptions-horizontal">- <select id="subscription-filter" class="form-select">+ <select id="subscription-filter" class="form-select" aria-label="Filter by subscription"><option value="">All News</option></select></div>@@ -95,8 +95,8 @@</div><div class="ldr-impact-filter-group">- <label>Impact:</label>- <input type="range" class="ldr-impact-slider" min="0" max="10" value="0" id="impact-filter">+ <label for="impact-filter">Impact:</label>+ <input type="range" class="ldr-impact-slider" min="0" max="10" value="0" id="impact-filter" aria-label="Minimum impact score filter"><span class="ldr-impact-value">0+</span></div></div>diff --git a/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js b/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.jsindex f438d858bc..5ee6dbf96f 100644--- a/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js@@ -117,10 +117,36 @@ test.describe('Mobile UI Audit - Issue Detection', () => {results.issues.smallText = results.issues.smallText.slice(0, 10);// 3. Check for overflowing elements+ // Helper function to check if element is inside a scrollable container+ const isInScrollableContainer = (el) => {+ let parent = el.parentElement;+ while (parent) {+ const style = window.getComputedStyle(parent);+ const overflowX = style.overflowX;+ // Check if parent has horizontal scroll enabled+ if (overflowX === 'auto' || overflowX === 'scroll') {+ return true;+ }+ // Also check for common scrollable container classes+ if (parent.classList.contains('ldr-settings-tabs') ||+ parent.classList.contains('nav-tabs') ||+ parent.classList.contains('ldr-tab-navigation') ||+ parent.getAttribute('role') === 'tablist') {+ return true;+ }+ parent = parent.parentElement;+ }+ return false;+ };+document.querySelectorAll('*').forEach((el) => {const rect = el.getBoundingClientRect();if (rect.right > window.innerWidth + 5) {// Allow 5px tolerance+ // Skip elements inside scrollable containers - this is expected behavior+ if (isInScrollableContainer(el)) {+ return;+ }results.issues.overflowingElements.push({tag: el.tagName.toLowerCase(),class: el.className?.toString().slice(0, 50) || '',diff --git a/tests/ui_tests/playwright/tests/research-page.spec.js b/tests/ui_tests/playwright/tests/research-page.spec.jsindex 0c5769df41..0e80ecda34 100644--- a/tests/ui_tests/playwright/tests/research-page.spec.js+++ b/tests/ui_tests/playwright/tests/research-page.spec.js@@ -234,7 +234,7 @@ test.describe('Research Page - Mobile Nav Clearance', () => {return;}- const result = await page.evaluate((NAV_HEIGHT, MIN_CLEARANCE) => {+ const result = await page.evaluate(() => {const mobileNav = document.querySelector('.ldr-mobile-bottom-nav');if (!mobileNav) return { hasNav: false, clearance: 0 };@@ -264,7 +264,7 @@ test.describe('Research Page - Mobile Nav Clearance', () => {lastElementBottom: lastBottom,clearance: navRect.top - lastBottom,};- }, MOBILE_NAV_HEIGHT, MIN_NAV_CLEARANCE);+ });if (result.hasNav) {expect(result.clearance, `Clearance above nav: ${result.clearance}px`).toBeGreaterThanOrEqual(MIN_NAV_CLEARANCE);