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(ui): resolve Safari/WebKit sidebar and mobile overflow layout issues (#3623)

LearningCircuitb101b1a37a32
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 770b8889ab..4d4924e9df 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -226,7 +226,7 @@
@media (max-width: 767px) {
html, body {
overflow-x: hidden;
- max-width: 100%;
+ max-width: 100vw;
}
img, video, iframe, table, pre, canvas, svg {
@@ -237,8 +237,14 @@
.container,
.container-fluid,
.card,
+ .ldr-page.active,
+ .ldr-page-header,
+ .ldr-card,
+ .ldr-research-card,
.modal-content {
max-width: 100%;
+ box-sizing: border-box;
+ overflow-x: hidden;
padding-left: 1rem;
padding-right: 1rem;
}
@@ -282,8 +288,11 @@
.ldr-main-content {
margin-left: 0 !important;
width: 100% !important;
+ max-width: 100vw !important;
+ box-sizing: border-box !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
+ overflow-x: hidden !important;
}
/* Make sure the app container doesn't have grid/flex that shows sidebar */
@@ -771,7 +780,8 @@
@media (max-width: 767px) {
.ldr-top-bar {
overflow: hidden !important;
- max-width: 100% !important;
+ max-width: 100vw !important;
+ box-sizing: border-box !important;
text-overflow: ellipsis;
}
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 2b3010e1ba..bae529d80d 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -172,7 +172,10 @@ a:hover {
/* Sidebar */
.ldr-sidebar {
width: 240px;
+ min-width: 240px;
max-width: 240px;
+ flex-shrink: 0;
+ flex-grow: 0;
background-color: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
@@ -1630,6 +1633,7 @@ textarea:focus, input[type="text"]:focus {
@media (max-width: 991px) {
.ldr-sidebar {
width: 60px;
+ min-width: 60px;
max-width: 60px;
overflow: hidden;
}
@@ -1758,14 +1762,19 @@ textarea:focus, input[type="text"]:focus {
.ldr-main-content {
margin-left: 0;
width: 100%;
- padding-bottom: var(--mobile-nav-clearance-standard); /* Standardized nav clearance */
+ padding: 5rem 1rem var(--mobile-nav-clearance-standard) 1rem;
+ box-sizing: border-box;
+ overflow-x: hidden;
}
/* Adjust top bar for mobile */
.ldr-top-bar {
left: 0;
+ right: 0;
+ max-width: 100vw;
padding: 0 1rem;
height: 50px;
+ box-sizing: border-box;
}
.ldr-user-info {
diff --git a/src/local_deep_research/web/templates/base.html b/src/local_deep_research/web/templates/base.html
index 9f84c65c2f..8b9fd289ca 100644
--- a/src/local_deep_research/web/templates/base.html
+++ b/src/local_deep_research/web/templates/base.html
@@ -73,6 +73,15 @@
.ldr-main-content {
margin-left: 0 !important;
width: 100% !important;
+ max-width: 100vw !important;
+ box-sizing: border-box !important;
+ overflow-x: hidden !important;
+ }
+
+ /* Top bar must not overflow viewport */
+ .ldr-top-bar {
+ max-width: 100vw !important;
+ box-sizing: border-box !important;
}
}
</style>