~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: Add mobile CSS fixes for Settings page extreme height issue
LearningCircuitc59ca415707b
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.cssnew file mode 100644index 0000000000..07618868b2--- /dev/null+++ b/src/local_deep_research/web/static/css/settings-mobile-fix.css@@ -0,0 +1,97 @@+/* Mobile-specific fixes for Settings page */++/* Fix extreme height issue on mobile devices */+@media screen and (max-width: 768px) {+ /* Main container height constraints */+ .ldr-settings-container {+ max-height: 100vh;+ overflow-y: auto;+ -webkit-overflow-scrolling: touch;+ }++ /* Fix main content height on mobile */+ .ldr-main-content {+ height: auto !important;+ max-height: calc(100vh - 60px); /* Account for mobile nav bar */+ overflow-y: auto;+ }++ /* Settings page specific */+ #settings {+ height: auto !important;+ max-height: 100%;+ }++ /* Card content should scroll */+ .ldr-card {+ max-height: calc(100vh - 120px);+ overflow-y: auto;+ }++ /* Form should not expand infinitely */+ .ldr-settings-form {+ max-height: none;+ overflow: visible;+ }++ /* Textarea height limits */+ .ldr-settings-textarea {+ min-height: 100px !important;+ max-height: 200px !important;+ }++ /* JSON expanded controls height limit */+ .ldr-json-expanded-controls {+ max-height: 400px;+ overflow-y: auto;+ }++ /* Section spacing */+ .ldr-settings-section {+ margin-bottom: 20px;+ }++ /* Reduce padding on mobile */+ .ldr-settings-item {+ padding: 10px;+ }++ /* Better touch targets */+ .ldr-settings-input,+ .ldr-settings-select,+ .ldr-settings-textarea {+ min-height: 44px;+ font-size: 16px; /* Prevent iOS zoom */+ }++ /* Fix body overflow */+ body {+ overflow-x: hidden;+ overflow-y: auto;+ height: 100vh;+ position: relative;+ }++ /* Ensure page doesn't expand beyond viewport */+ .ldr-page {+ min-height: auto !important;+ max-height: calc(100vh - 60px);+ overflow-y: auto;+ }+}++/* Specific fix for very small devices */+@media screen and (max-width: 480px) {+ .ldr-settings-container {+ padding: 10px;+ }++ .ldr-card {+ margin: 10px 0;+ padding: 10px;+ }++ .ldr-settings-description {+ font-size: 14px;+ }+}diff --git a/src/local_deep_research/web/templates/settings_dashboard.html b/src/local_deep_research/web/templates/settings_dashboard.htmlindex eec385be71..06ed56a6a8 100644--- a/src/local_deep_research/web/templates/settings_dashboard.html+++ b/src/local_deep_research/web/templates/settings_dashboard.html@@ -10,6 +10,7 @@<meta name="csrf-token" content="{{ csrf_token() }}"><link rel="stylesheet" href="/static/css/settings.css"><link rel="stylesheet" href="/static/css/custom_dropdown.css">+<link rel="stylesheet" href="/static/css/settings-mobile-fix.css">{% endblock %}{% block content %}diff --git a/tests/ui_tests/test_quick_screenshot.js b/tests/ui_tests/test_quick_screenshot.jsnew file mode 100644index 0000000000..eee42e6aca--- /dev/null+++ b/tests/ui_tests/test_quick_screenshot.js@@ -0,0 +1,39 @@+const puppeteer = require('puppeteer');+const AuthHelper = require('./auth_helper');++async function quickScreenshot() {+ const browser = await puppeteer.launch({+ headless: false, // Show browser+ args: ['--no-sandbox', '--disable-setuid-sandbox']+ });++ try {+ const page = await browser.newPage();+ await page.setViewport({ width: 375, height: 667, isMobile: true });++ const auth = new AuthHelper(page);+ await auth.ensureAuthenticated();++ // Just navigate and immediately screenshot+ page.goto('http://127.0.0.1:5000/settings/').catch(() => {});+ await new Promise(resolve => setTimeout(resolve, 3000));++ await page.screenshot({ path: './settings-quick.png' });+ console.log('📸 Screenshot saved');++ // Get page info+ const info = await page.evaluate(() => {+ return {+ url: window.location.href,+ title: document.title,+ bodyHeight: document.body.scrollHeight+ };+ });+ console.log('Page info:', info);++ } finally {+ await browser.close();+ }+}++quickScreenshot().catch(console.error);diff --git a/tests/ui_tests/test_settings_mobile_fix.js b/tests/ui_tests/test_settings_mobile_fix.jsnew file mode 100644index 0000000000..3e69c1f692--- /dev/null+++ b/tests/ui_tests/test_settings_mobile_fix.js@@ -0,0 +1,109 @@+const puppeteer = require('puppeteer');+const AuthHelper = require('./auth_helper');++async function testSettingsMobileFix() {+ console.log('🔍 Testing Settings page mobile fix...');++ const browser = await puppeteer.launch({+ headless: process.env.HEADLESS === 'true',+ args: ['--no-sandbox', '--disable-setuid-sandbox']+ });++ try {+ const page = await browser.newPage();++ // Set mobile viewport+ await page.setViewport({+ width: 375,+ height: 667,+ isMobile: true,+ hasTouch: true+ });++ console.log('📱 Set mobile viewport (375x667)');++ // Authenticate+ console.log('🔐 Authenticating...');+ const auth = new AuthHelper(page);+ await auth.ensureAuthenticated();+ console.log('✅ Authenticated');++ // Navigate to Settings+ console.log('📄 Navigating to Settings...');+ try {+ await page.goto('http://127.0.0.1:5000/settings/', {+ waitUntil: 'domcontentloaded',+ timeout: 5000+ });+ } catch (e) {+ console.log('⚠️ Navigation timeout, but continuing...');+ }++ // Wait a bit for styles to apply+ await new Promise(resolve => setTimeout(resolve, 2000));++ // Check the actual height of main content+ const dimensions = await page.evaluate(() => {+ const mainContent = document.querySelector('.ldr-main-content');+ const settingsContainer = document.querySelector('.ldr-settings-container');+ const body = document.body;++ return {+ viewport: {+ width: window.innerWidth,+ height: window.innerHeight+ },+ body: {+ scrollHeight: body.scrollHeight,+ clientHeight: body.clientHeight,+ offsetHeight: body.offsetHeight+ },+ mainContent: mainContent ? {+ scrollHeight: mainContent.scrollHeight,+ clientHeight: mainContent.clientHeight,+ offsetHeight: mainContent.offsetHeight,+ computedHeight: window.getComputedStyle(mainContent).height+ } : null,+ settingsContainer: settingsContainer ? {+ scrollHeight: settingsContainer.scrollHeight,+ clientHeight: settingsContainer.clientHeight,+ offsetHeight: settingsContainer.offsetHeight+ } : null+ };+ });++ console.log('📏 Dimensions:');+ console.log(' Viewport:', dimensions.viewport);+ console.log(' Body:', dimensions.body);+ console.log(' Main Content:', dimensions.mainContent);+ console.log(' Settings Container:', dimensions.settingsContainer);++ // Check if height is reasonable (less than 5000px)+ const isFixed = dimensions.mainContent &&+ parseInt(dimensions.mainContent.computedHeight) < 5000;++ console.log(isFixed ? '✅ Height issue FIXED!' : '❌ Height issue persists');++ // Take screenshot+ await page.screenshot({+ path: './settings-mobile-fixed.png',+ fullPage: false // Just viewport+ });+ console.log('📸 Screenshot saved: ./settings-mobile-fixed.png');++ // Also take a full page screenshot+ await page.screenshot({+ path: './settings-mobile-full.png',+ fullPage: true+ });+ console.log('📸 Full page screenshot saved: ./settings-mobile-full.png');++ } catch (error) {+ console.error('❌ Error:', error.message);+ throw error;+ } finally {+ await browser.close();+ }+}++testSettingsMobileFix().catch(console.error);