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(mobile): fix News button, tighten test thresholds, fix nav overlap

LearningCircuit918d636af275
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 a8baf89c49..91991ead83 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -721,13 +721,25 @@
@media (max-width: 767px) {
#metrics,
.ldr-metrics-page {
- padding-bottom: 140px !important;
+ padding-bottom: 160px !important;
}
#metrics .ldr-card:last-child,
.ldr-metrics-page .ldr-card:last-child {
margin-bottom: 100px !important;
}
+
+ /* Help panel must be above mobile nav */
+ #metrics .ldr-help-panel,
+ .ldr-metrics-page .ldr-help-panel,
+ .ldr-help-panel {
+ margin-bottom: 100px !important;
+ }
+
+ #metrics .ldr-help-panel-header,
+ .ldr-metrics-page .ldr-help-panel-header {
+ margin-bottom: 80px !important;
+ }
}
/* Ensure metrics tables don't cause overflow */
diff --git a/src/local_deep_research/web/templates/pages/news.html b/src/local_deep_research/web/templates/pages/news.html
index 899d9d2926..bdbbb07197 100644
--- a/src/local_deep_research/web/templates/pages/news.html
+++ b/src/local_deep_research/web/templates/pages/news.html
@@ -57,9 +57,9 @@
<button class="btn btn-warning" id="refresh-feed-btn">
<i class="bi bi-arrow-clockwise"></i> Refresh Feed
</button>
- <a href="/news/subscriptions/new" class="btn btn-outline-primary">
+ <button type="button" class="btn btn-outline-primary" id="create-subscription-btn">
<i class="bi bi-plus-circle"></i> Create Subscription
- </a>
+ </button>
<a href="/news/subscriptions" class="btn btn-outline-secondary">
<i class="bi bi-bell"></i> Manage Subscriptions
</a>
diff --git a/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js b/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js
index db0c1d88f8..b0c08621e8 100644
--- a/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js
+++ b/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js
@@ -221,11 +221,11 @@ test.describe('All Pages - Touch Targets', () => {
);
}
- // Allow up to 10 small elements (some icons may be small but have large hit areas)
+ // Allow up to 3 small elements (some icons may be small but have large hit areas)
expect(
smallTargets.length,
`${pageInfo.name} should have minimal small touch targets`
- ).toBeLessThan(10);
+ ).toBeLessThan(3);
});
}
});
@@ -282,8 +282,8 @@ test.describe('All Pages - Content Above Mobile Nav', () => {
if (rect.width === 0 || rect.height === 0) return;
// Check if element is behind the nav (with small tolerance for edge cases)
- // Allow 20px overlap tolerance since fixed navs and long forms can have slight overlaps
- const OVERLAP_TOLERANCE = 20;
+ // Allow 5px overlap tolerance for minor edge cases
+ const OVERLAP_TOLERANCE = 5;
if (rect.bottom > navRect.top + OVERLAP_TOLERANCE && rect.top < navRect.bottom) {
// Element significantly overlaps with nav vertically
// Check if it's not part of the nav itself
@@ -345,14 +345,12 @@ test.describe('All Pages - Basic Load Tests', () => {
await page.goto(pageInfo.path);
await page.waitForLoadState('networkidle');
- // Filter out known benign errors and pre-existing non-mobile bugs
+ // Filter out known benign errors
const criticalErrors = errors.filter(
(err) =>
!err.includes('favicon') &&
!err.includes('404') &&
- !err.includes('Failed to load resource') &&
- // Known pre-existing JS bug - button element missing from HTML
- !err.includes('Create subscription button not found')
+ !err.includes('Failed to load resource')
);
expect(pageErrors.length, `${pageInfo.name} should have no page errors`).toBe(0);
diff --git a/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js b/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js
index 7b3ff4b5cb..0ee341719f 100644
--- a/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js
+++ b/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js
@@ -184,7 +184,7 @@ test.describe('Mobile - Form Elements', () => {
}
// Allow some small inputs (like checkboxes which have larger click areas)
- expect(smallInputs.length, 'Most inputs should have adequate touch targets').toBeLessThan(5);
+ expect(smallInputs.length, 'Most inputs should have adequate touch targets').toBeLessThan(2);
});
test('News page - Search input has proper sizing', async ({ page, isMobile }) => {
@@ -275,8 +275,8 @@ test.describe('Mobile - Button Spacing', () => {
}
// Allow some close buttons (like in button groups, filter buttons, etc.)
- // Complex pages with many action buttons may have 15-20 intentionally grouped buttons
- expect(tooClose.length, 'Most buttons should have adequate spacing').toBeLessThan(20);
+ // Pages with intentional button groups (filters, templates) may have up to 18 close pairs
+ expect(tooClose.length, 'Most buttons should have adequate spacing').toBeLessThan(18);
});
}
});
@@ -415,7 +415,7 @@ test.describe('Mobile - Dropdowns', () => {
}
}
- expect(smallDropdowns.length, 'Dropdowns should have adequate touch targets').toBeLessThan(3);
+ expect(smallDropdowns.length, 'Dropdowns should have adequate touch targets').toBeLessThan(1);
});
});
@@ -471,7 +471,7 @@ test.describe('Mobile - Text Readability', () => {
}
// Allow some small text (like timestamps, labels)
- expect(smallTextElements.length, 'Should have minimal very small text').toBeLessThan(5);
+ expect(smallTextElements.length, 'Should have minimal very small text').toBeLessThan(2);
});
}
});