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: Resolve CSS styling issues across multiple pages

LearningCircuited6995d8b437
diff --git a/src/local_deep_research/web/static/css/components/history-icons.css b/src/local_deep_research/web/static/css/components/history-icons.css
new file mode 100644
index 0000000000..aa11572f1b
--- /dev/null
+++ b/src/local_deep_research/web/static/css/components/history-icons.css
@@ -0,0 +1,108 @@
+/* History Page Icon Fixes */
+
+/* Ensure consistent button styling in history items */
+.ldr-history-item-actions {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ gap: 0.5rem;
+ position: relative;
+ z-index: 5;
+}
+
+.ldr-history-item-actions button,
+.ldr-history-item-actions .btn {
+ position: relative;
+ z-index: 10;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.25rem;
+ padding: 0.25rem 0.5rem;
+ font-size: 0.875rem;
+ line-height: 1.5;
+ min-height: 32px;
+ min-width: auto;
+ white-space: nowrap;
+}
+
+/* Consistent icon sizing */
+.ldr-history-item-actions button i,
+.ldr-history-item-actions .btn i {
+ font-size: 0.875rem;
+ width: 1em;
+ height: 1em;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+}
+
+/* View button specific styling */
+.ldr-history-item-actions .ldr-view-btn {
+ color: var(--accent-tertiary);
+ border-color: var(--accent-tertiary);
+}
+
+.ldr-history-item-actions .ldr-view-btn:hover {
+ background-color: rgba(64, 191, 255, 0.1);
+ color: var(--accent-secondary);
+}
+
+/* Subscribe button specific styling */
+.ldr-history-item-actions .ldr-subscribe-btn {
+ color: var(--success-color);
+ border-color: var(--success-color);
+}
+
+.ldr-history-item-actions .ldr-subscribe-btn:hover {
+ background-color: rgba(10, 207, 151, 0.1);
+ color: var(--success-color);
+}
+
+/* Delete button specific styling */
+.ldr-history-item-actions .ldr-delete-item-btn {
+ color: var(--error-color);
+ border-color: var(--error-color);
+}
+
+.ldr-history-item-actions .ldr-delete-item-btn:hover {
+ background-color: rgba(250, 92, 124, 0.1);
+ color: var(--error-color);
+}
+
+/* Ensure btn-sm modifier works correctly */
+.ldr-history-item-actions .btn-sm {
+ padding: 0.25rem 0.5rem;
+ font-size: 0.875rem;
+}
+
+/* Fix button outline styles */
+.ldr-history-item-actions .btn-outline {
+ background-color: transparent;
+ border-width: 1px;
+ border-style: solid;
+}
+
+/* Mobile responsive adjustments */
+@media (max-width: 768px) {
+ .ldr-history-item-actions {
+ gap: 0.25rem;
+ }
+
+ .ldr-history-item-actions button,
+ .ldr-history-item-actions .btn {
+ padding: 0.375rem 0.5rem;
+ min-height: 36px; /* Slightly larger for mobile touch targets */
+ }
+
+ /* Hide button text on mobile, show only icons */
+ .ldr-history-item-actions button span,
+ .ldr-history-item-actions .btn span {
+ display: none;
+ }
+
+ .ldr-history-item-actions button i,
+ .ldr-history-item-actions .btn i {
+ margin: 0;
+ }
+}
diff --git a/src/local_deep_research/web/static/css/news.css b/src/local_deep_research/web/static/css/news.css
index 56019ab4f2..305006ecff 100644
--- a/src/local_deep_research/web/static/css/news.css
+++ b/src/local_deep_research/web/static/css/news.css
@@ -438,6 +438,32 @@
display: flex;
align-items: center;
gap: 0.75rem;
+ flex-wrap: wrap;
+}
+
+.ldr-filter-btn {
+ padding: 0.5rem 1rem;
+ background: var(--bg-tertiary);
+ color: var(--text-secondary);
+ border: 1px solid var(--border-color);
+ border-radius: 8px;
+ cursor: pointer;
+ transition: all 0.2s;
+ font-size: 0.875rem;
+ white-space: nowrap;
+ min-width: fit-content;
+}
+
+.ldr-filter-btn:hover {
+ background: var(--bg-secondary);
+ color: var(--text-primary);
+ border-color: var(--accent-primary);
+}
+
+.ldr-filter-btn.active {
+ background: var(--accent-primary);
+ color: white;
+ border-color: var(--accent-primary);
}
.ldr-impact-slider {
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index fdc72d2cd9..fbbf0270e3 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -94,12 +94,8 @@ a:hover {
}
.ldr-sidebar-nav li {
- padding: 0.75rem 1.5rem;
margin-bottom: 0.25rem;
cursor: pointer;
- display: flex;
- align-items: center;
- gap: 0.75rem;
color: var(--text-secondary);
border-left: 3px solid transparent;
transition: all 0.2s;
@@ -108,17 +104,14 @@ a:hover {
}
.ldr-sidebar-nav li a {
- position: absolute;
- inset: 0;
- width: 100%;
- height: 100%;
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1.5rem;
color: inherit;
text-decoration: none;
- z-index: 2;
+ width: 100%;
+ height: 100%;
}
.ldr-sidebar-nav li i {
@@ -131,11 +124,14 @@ a:hover {
color: var(--text-primary);
}
+.ldr-sidebar-nav li:has(a:focus) {
+ background-color: var(--bg-tertiary);
+ color: var(--text-primary);
+}
+
.ldr-sidebar-nav li a:focus {
outline: 2px solid var(--accent-primary);
outline-offset: -2px;
- background-color: var(--bg-tertiary);
- color: var(--text-primary);
}
.ldr-sidebar-nav li a:focus .ldr-nav-shortcut {
@@ -1161,7 +1157,6 @@ textarea:focus, input[type="text"]:focus {
.ldr-sidebar-nav li {
text-indent: -9999px;
white-space: nowrap;
- padding: 1rem 0;
text-align: center;
height: 60px;
display: flex;
@@ -1169,6 +1164,10 @@ textarea:focus, input[type="text"]:focus {
justify-content: center;
}
+ .ldr-sidebar-nav li a {
+ padding: 1rem 0;
+ }
+
.ldr-sidebar-nav li i {
text-indent: 0;
margin: 0;
@@ -1289,10 +1288,13 @@ textarea:focus, input[type="text"]:focus {
/* Restore text in nav items when sidebar is active on mobile */
.ldr-sidebar.active .ldr-sidebar-nav li {
text-indent: 0;
- padding: 0.75rem 1.5rem;
text-align: left;
}
+ .ldr-sidebar.active .ldr-sidebar-nav li a {
+ padding: 0.75rem 1.5rem;
+ }
+
.ldr-sidebar.active .ldr-sidebar-nav li i {
display: inline;
width: 20px;
diff --git a/src/local_deep_research/web/templates/auth/register.html b/src/local_deep_research/web/templates/auth/register.html
index ca93cef8bb..a4950b52ed 100644
--- a/src/local_deep_research/web/templates/auth/register.html
+++ b/src/local_deep_research/web/templates/auth/register.html
@@ -26,18 +26,18 @@
radial-gradient(ellipse at bottom right, rgba(64, 191, 255, 0.1) 0%, transparent 50%);
}
- .auth-container {
+ .ldr-auth-container {
width: 100%;
max-width: 600px;
padding: 2rem;
}
- .auth-header {
+ .ldr-auth-header {
text-align: center;
margin-bottom: 4rem;
}
- .auth-header h1 {
+ .ldr-auth-header h1 {
font-size: 2.5rem;
font-weight: 600;
color: var(--text-primary);
@@ -48,12 +48,12 @@
gap: 1rem;
}
- .auth-header h1 i {
+ .ldr-auth-header h1 i {
color: var(--accent-primary);
font-size: 2.25rem;
}
- .auth-header p {
+ .ldr-auth-header p {
color: var(--text-secondary);
font-size: 1.25rem;
}
@@ -70,7 +70,7 @@
padding: 3rem;
}
- .warning-banner {
+ .ldr-warning-banner {
background: rgba(249, 188, 11, 0.1);
border: 1px solid rgba(249, 188, 11, 0.3);
border-radius: 12px;
@@ -81,30 +81,45 @@
gap: 1.25rem;
}
- .warning-banner i {
+ .ldr-warning-banner i {
color: var(--warning-color);
font-size: 2rem;
margin-top: 0.25rem;
}
- .warning-banner-content {
+ .ldr-warning-banner-content {
flex: 1;
}
- .warning-banner-content strong {
+ .ldr-warning-banner-content strong {
color: var(--warning-color);
display: block;
margin-bottom: 0.5rem;
font-size: 1.1rem;
}
- .warning-banner-content span {
+ .ldr-danger-alert {
+ background: rgba(250, 92, 124, 0.1);
+ border: 1px solid rgba(250, 92, 124, 0.3);
+ border-radius: 12px;
+ padding: 1.5rem;
+ margin-bottom: 2rem;
+ color: var(--error-color);
+ }
+
+ .ldr-danger-alert i {
+ color: var(--error-color);
+ font-size: 2rem;
+ margin-right: 1rem;
+ }
+
+ .ldr-warning-banner-content span {
color: var(--text-secondary);
font-size: 1rem;
line-height: 1.6;
}
- .danger-alert {
+ .ldr-danger-alert {
background: rgba(250, 92, 124, 0.1);
border: 1px solid rgba(250, 92, 124, 0.3);
border-radius: 8px;
@@ -192,7 +207,7 @@
color: var(--text-muted);
}
- .password-requirements {
+ .ldr-password-requirements {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 10px;
@@ -200,30 +215,30 @@
margin-bottom: 2rem;
}
- .form-group.password-field {
+ .form-group.ldr-password-field {
margin-bottom: 1rem;
}
- .password-requirements strong {
+ .ldr-password-requirements strong {
color: var(--text-primary);
display: block;
margin-bottom: 0.75rem;
font-size: 1.05rem;
}
- .password-requirements ul {
+ .ldr-password-requirements ul {
margin: 0;
padding-left: 1.75rem;
color: var(--text-secondary);
font-size: 1rem;
}
- .password-requirements li {
+ .ldr-password-requirements li {
margin-bottom: 0.5rem;
line-height: 1.5;
}
- .password-strength {
+ .ldr-password-strength {
height: 4px;
border-radius: 2px;
margin-top: 0.5rem;
@@ -235,7 +250,7 @@
.strength-medium { background-color: var(--warning-color); width: 66%; }
.strength-strong { background-color: var(--success-color); width: 100%; }
- .acknowledge-box {
+ .ldr-acknowledge-box {
background: rgba(250, 92, 124, 0.05);
border: 1px solid rgba(250, 92, 124, 0.2);
border-radius: 10px;
@@ -243,7 +258,7 @@
margin-bottom: 2rem;
}
- .checkbox-label {
+ .ldr-checkbox-label {
display: flex;
align-items: flex-start;
gap: 1rem;
@@ -252,7 +267,7 @@
font-size: 1.05rem;
}
- .checkbox-label input[type="checkbox"] {
+ .ldr-checkbox-label input[type="checkbox"] {
width: 1.5rem;
height: 1.5rem;
background: var(--bg-tertiary);
@@ -263,16 +278,16 @@
margin-top: 0.125rem;
}
- .checkbox-label input[type="checkbox"]:checked {
+ .ldr-checkbox-label input[type="checkbox"]:checked {
background: var(--accent-primary);
border-color: var(--accent-primary);
}
- .checkbox-label span {
+ .ldr-checkbox-label span {
line-height: 1.5;
}
- .checkbox-label strong {
+ .ldr-checkbox-label strong {
color: var(--error-color);
font-weight: 600;
}
@@ -305,27 +320,27 @@
transform: translateY(0);
}
- .auth-links {
+ .ldr-auth-links {
text-align: center;
margin-top: 2.5rem;
padding-top: 2.5rem;
border-top: 1px solid var(--border-color);
}
- .auth-links p {
+ .ldr-auth-links p {
color: var(--text-secondary);
margin-bottom: 0.75rem;
font-size: 1.05rem;
}
- .auth-links a {
+ .ldr-auth-links a {
color: var(--accent-tertiary);
text-decoration: none;
font-weight: 500;
font-size: 1.05rem;
}
- .auth-links a:hover {
+ .ldr-auth-links a:hover {
color: var(--accent-secondary);
}
@@ -351,8 +366,8 @@
<p>Join Local Deep Research</p>
</div>
- <div class="card">
- <div class="card-content">
+ <div class="ldr-card">
+ <div class="ldr-card-content">
{% if has_encryption %}
<div class="ldr-warning-banner">
diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.html
index 22b98bd555..50325f5c89 100644
--- a/src/local_deep_research/web/templates/pages/benchmark.html
+++ b/src/local_deep_research/web/templates/pages/benchmark.html
@@ -19,7 +19,7 @@
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
- background: var(--card-bg);
+ background: var(--bg-secondary);
}
.dataset-header {
@@ -38,7 +38,7 @@
.benchmark-progress {
margin-top: 20px;
padding: 20px;
- background: var(--card-bg);
+ background: var(--bg-secondary);
border-radius: 8px;
border: 1px solid var(--border-color);
display: none;
@@ -54,7 +54,7 @@
.progress-bar {
width: 100%;
height: 20px;
- background: var(--bg-color);
+ background: var(--bg-primary);
border-radius: 10px;
overflow: hidden;
margin-bottom: 15px;
@@ -62,7 +62,7 @@
.progress-fill {
height: 100%;
- background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
+ background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
width: 0%;
transition: width 0.3s ease;
}
@@ -76,7 +76,7 @@
.metric-card {
padding: 15px;
- background: var(--bg-color);
+ background: var(--bg-tertiary);
border-radius: 6px;
text-align: center;
}
@@ -84,7 +84,7 @@
.metric-value {
font-size: 1.5rem;
font-weight: bold;
- color: var(--primary-color);
+ color: var(--accent-primary);
}
.metric-label {
@@ -98,7 +98,7 @@
justify-content: space-between;
margin-top: 10px;
padding: 10px;
- background: var(--bg-color);
+ background: var(--bg-tertiary);
border-radius: 6px;
}
@@ -109,9 +109,9 @@
}
.alert-warning {
- background-color: #fff3cd;
- border: 1px solid #ffeaa7;
- color: #856404;
+ background-color: rgba(249, 188, 11, 0.1);
+ border: 1px solid rgba(249, 188, 11, 0.3);
+ color: var(--warning-color);
}
.alert i {
@@ -124,8 +124,8 @@
}
.question-card {
- background: #1a1a1a;
- border: 1px solid #333;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-color);
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
diff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.html
index df4b16eba1..97cdf79d17 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -22,8 +22,8 @@
}
.run-card {
- background: #1a1a1a;
- border: 1px solid #333;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-color);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
@@ -32,12 +32,12 @@
}
.run-card:hover {
- border-color: var(--primary-color);
- background: #1e1e1e;
+ border-color: var(--accent-primary);
+ background: var(--bg-tertiary);
}
.run-card.expanded {
- border-color: var(--primary-color);
+ border-color: var(--accent-primary);
}
.run-header {
@@ -50,11 +50,11 @@
.run-title {
font-size: 1.2rem;
font-weight: bold;
- color: #e0e0e0;
+ color: var(--text-primary);
}
.run-date {
- color: #a0a0a0;
+ color: var(--text-muted);
font-size: 0.9rem;
}
@@ -97,7 +97,7 @@
.summary-item {
text-align: center;
padding: 10px;
- background: #2a2a2a;
+ background: var(--bg-tertiary);
border-radius: 6px;
}
diff --git a/src/local_deep_research/web/templates/pages/history.html b/src/local_deep_research/web/templates/pages/history.html
index 2d7fc9cd5a..44f992e8ca 100644
--- a/src/local_deep_research/web/templates/pages/history.html
+++ b/src/local_deep_research/web/templates/pages/history.html
@@ -6,7 +6,7 @@
{% block styles %}
{{ super() }}
-<link rel="stylesheet" href="/static/css/components/history.css">
+<link rel="stylesheet" href="/static/css/components/history-icons.css">
{% endblock %}
{% block content %}
diff --git a/src/local_deep_research/web/templates/pages/news.html b/src/local_deep_research/web/templates/pages/news.html
index 4c079f3119..169b3275af 100644
--- a/src/local_deep_research/web/templates/pages/news.html
+++ b/src/local_deep_research/web/templates/pages/news.html
@@ -97,6 +97,7 @@
</div>
<div class="ldr-time-filter-group">
+ <button class="ldr-filter-btn active" data-time="all">All</button>
<button class="ldr-filter-btn" data-time="today">Today</button>
<button class="ldr-filter-btn" data-time="week">This Week</button>
<button class="ldr-filter-btn" data-time="month">This Month</button>
diff --git a/tests/ui_tests/test_responsive_ui_comprehensive.js b/tests/ui_tests/test_responsive_ui_comprehensive.js
index d133ef7012..4d2b35c962 100644
--- a/tests/ui_tests/test_responsive_ui_comprehensive.js
+++ b/tests/ui_tests/test_responsive_ui_comprehensive.js
@@ -33,6 +33,7 @@ const TEST_PAGES = [
// News subpages
{ name: 'News-Subscriptions', path: '/news/subscriptions' },
+ { name: 'News-NewSubscription', path: '/news/subscriptions/new' },
// Other important pages
{ name: 'Benchmark', path: '/benchmark/' },