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.

feat: Add inline CSS to force hide sidebar on mobile

LearningCircuit640191cfb61d
diff --git a/src/local_deep_research/web/templates/base.html b/src/local_deep_research/web/templates/base.html
index 142edbaa2d..0e0eb49a5c 100644
--- a/src/local_deep_research/web/templates/base.html
+++ b/src/local_deep_research/web/templates/base.html
@@ -15,6 +15,35 @@
<link rel="stylesheet" href="/static/css/styles.css">
<link rel="stylesheet" href="/static/css/mobile-navigation.css">
<link rel="stylesheet" href="/static/css/mobile-responsive.css">
+
+ <!-- Force hide sidebar on mobile with inline CSS for highest priority -->
+ <style>
+ @media (max-width: 767px) {
+ /* Absolutely hide the desktop sidebar on mobile */
+ .ldr-sidebar:not(.active),
+ aside.ldr-sidebar:not(.active),
+ .ldr-app-container > aside {
+ display: none !important;
+ visibility: hidden !important;
+ width: 0 !important;
+ height: 0 !important;
+ position: absolute !important;
+ left: -9999px !important;
+ }
+
+ /* Ensure app container doesn't use flex on mobile */
+ .ldr-app-container {
+ display: block !important;
+ }
+
+ /* Main content takes full width */
+ .ldr-main-content {
+ margin-left: 0 !important;
+ width: 100% !important;
+ }
+ }
+ </style>
+
{% block extra_head %}{% endblock %}
</head>
<body>