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.

refactor: standardize mobile nav clearance using CSS custom properties (#2229)

LearningCircuitc2a4504f9997
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 7d49413992..784eb23ab3 100644
--- a/src/local_deep_research/web/static/css/mobile-navigation.css
+++ b/src/local_deep_research/web/static/css/mobile-navigation.css
@@ -8,6 +8,13 @@
======================================== */
:root {
--mobile-nav-height: 56px;
+ /* 3-tier mobile nav clearance system:
+ - minimal: lists, grids, nested containers where parent already has padding
+ - standard: page containers, general content pages
+ - extended: forms with bottom inputs (Settings), data tables (Metrics) */
+ --mobile-nav-clearance-minimal: calc(80px + env(safe-area-inset-bottom));
+ --mobile-nav-clearance-standard: calc(120px + env(safe-area-inset-bottom));
+ --mobile-nav-clearance-extended: calc(160px + env(safe-area-inset-bottom));
--mobile-nav-bg: var(--bg-secondary, #0a0a0f);
--mobile-nav-border: var(--border-color, #333);
--mobile-nav-active: var(--accent-primary, #6e4ff6);
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 bf63b01f54..3474c100ad 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -11,13 +11,13 @@
/* 2. Fix content padding to account for mobile nav */
@media (max-width: 767px) {
body.ldr-has-mobile-nav {
- padding-bottom: 100px; /* Height of mobile nav + safe area */
+ padding-bottom: var(--mobile-nav-clearance-standard); /* Standardized nav clearance */
}
.ldr-main-content,
.ldr-page.active,
main {
- padding-bottom: 120px !important; /* Extra padding for content - nav is 56px + safe area */
+ padding-bottom: var(--mobile-nav-clearance-standard) !important; /* Standardized nav clearance */
margin-bottom: 0;
}
@@ -356,7 +356,7 @@
}
body.ldr-has-mobile-nav {
- padding-bottom: calc(80px + env(safe-area-inset-bottom));
+ padding-bottom: var(--mobile-nav-clearance-minimal);
}
.ldr-mobile-sheet-menu {
@@ -713,7 +713,7 @@
@media (max-width: 767px) {
#metrics,
.ldr-metrics-page {
- padding-bottom: 160px !important;
+ padding-bottom: var(--mobile-nav-clearance-extended) !important;
}
#metrics .ldr-card:last-child,
@@ -891,7 +891,7 @@
.ldr-news-page,
.ldr-subscriptions-page,
.ldr-news-feed {
- padding-bottom: 100px !important;
+ padding-bottom: var(--mobile-nav-clearance-standard) !important;
}
/* Ensure last items are not hidden behind nav */
@@ -904,13 +904,13 @@
/* Ensure scrollable containers account for mobile nav */
.ldr-news-list,
.ldr-subscriptions-grid {
- padding-bottom: 80px;
+ padding-bottom: var(--mobile-nav-clearance-minimal);
}
/* Settings page - ensure community note and links are above mobile nav */
.ldr-page#settings,
.ldr-settings-container {
- padding-bottom: 120px !important;
+ padding-bottom: var(--mobile-nav-clearance-standard) !important;
}
.ldr-community-note {
@@ -918,17 +918,17 @@
}
.ldr-settings-form {
- padding-bottom: 100px !important;
+ padding-bottom: var(--mobile-nav-clearance-standard) !important;
}
/* Library page - ensure footer content is above mobile nav */
/* Note: These target existing classes in library.html that predate ldr- prefix convention */
[class~="library-container"] {
- padding-bottom: 120px !important;
+ padding-bottom: var(--mobile-nav-clearance-standard) !important;
}
[class~="library-container"] [class~="documents-grid"] {
- padding-bottom: 80px !important;
+ padding-bottom: var(--mobile-nav-clearance-minimal) !important;
}
[class~="library-container"] [class~="empty-state"] {
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.css
index c225d8a77a..9716fff845 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
@@ -117,7 +117,7 @@
/* Mobile nav is ~56px + safe area, so 120px ensures content clears it */
#settings,
.ldr-page#settings {
- padding-bottom: 140px !important;
+ padding-bottom: var(--mobile-nav-clearance-extended) !important;
}
/* Page header needs extra bottom margin to stay above nav when page is short */
@@ -138,7 +138,7 @@
/* Settings form itself needs bottom padding to keep inputs above nav */
#settings .ldr-settings-form,
#settings form {
- padding-bottom: 160px !important;
+ padding-bottom: var(--mobile-nav-clearance-extended) !important;
}
/* Last input in settings should have extra margin */
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 3bb80ae04b..9297a5d3cc 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -1584,7 +1584,7 @@ textarea:focus, input[type="text"]:focus {
@media (max-width: 767px) {
body {
- padding-bottom: 60px; /* Add padding to body for the tab bar */
+ padding-bottom: var(--mobile-nav-clearance-standard); /* Standardized nav clearance */
}
/* Override flex container to not show sidebar */
@@ -1602,7 +1602,7 @@ textarea:focus, input[type="text"]:focus {
.ldr-main-content {
margin-left: 0;
width: 100%;
- padding-bottom: 70px; /* Account for mobile tab bar */
+ padding-bottom: var(--mobile-nav-clearance-standard); /* Standardized nav clearance */
}
/* Adjust top bar for mobile */
@@ -1624,7 +1624,7 @@ textarea:focus, input[type="text"]:focus {
/* Adjust padding for mobile when log panel is visible */
.ldr-page#research-progress.active ~ .ldr-main-content,
.ldr-page#research-results.active ~ .ldr-main-content {
- padding-bottom: calc(42vh + 60px); /* Log panel + mobile tab bar */
+ padding-bottom: calc(42vh + var(--mobile-nav-clearance-standard)); /* Log panel + nav clearance */
}
/* Sidebar toggle for mobile menu (hamburger menu) - only show when explicitly activated */