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.

style(ui): comprehensive UI improvements for desktop and mobile

LearningCircuit9da37c0c7a61
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 91991ead83..340a5f5edc 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -1327,3 +1327,150 @@
-webkit-overflow-scrolling: touch;
}
}
+
+/* =============================================
+ 33. Metrics Subpage Header Improvements
+ ============================================= */
+@media (max-width: 767px) {
+ /* Fix cramped headers on metrics subpages */
+ #context-overflow .ldr-page-header,
+ #costs .ldr-page-header,
+ #star-reviews .ldr-page-header,
+ #link-analytics .ldr-page-header,
+ .ldr-metrics-subpage .ldr-page-header {
+ flex-direction: column !important;
+ align-items: flex-start !important;
+ gap: var(--space-3, 0.75rem) !important;
+ }
+
+ /* Stack title and back button vertically */
+ #context-overflow .ldr-page-header > div:first-child,
+ #costs .ldr-page-header > div:first-child,
+ #star-reviews .ldr-page-header > div:first-child,
+ #link-analytics .ldr-page-header > div:first-child {
+ flex-direction: column !important;
+ align-items: flex-start !important;
+ gap: var(--space-2, 0.5rem) !important;
+ width: 100% !important;
+ }
+
+ /* Back button styling on mobile */
+ #context-overflow .ldr-page-header a[href="/metrics"],
+ #costs .ldr-page-header a[href="/metrics"],
+ #star-reviews .ldr-page-header a[href="/metrics"],
+ #link-analytics .ldr-page-header a[href="/metrics"],
+ .ldr-back-to-metrics {
+ margin-top: var(--space-2, 0.5rem) !important;
+ order: 2;
+ font-size: 0.8rem !important;
+ padding: 0.5rem 1rem !important;
+ }
+
+ /* Time range selector should wrap on mobile */
+ #context-overflow .ldr-time-range-selector,
+ #costs .ldr-time-range-selector,
+ .ldr-metrics-subpage .ldr-time-range-selector {
+ width: 100% !important;
+ flex-wrap: wrap !important;
+ justify-content: flex-start !important;
+ margin-left: 0 !important;
+ }
+
+ #context-overflow .ldr-time-range-selector span,
+ #costs .ldr-time-range-selector span {
+ width: 100% !important;
+ margin-bottom: var(--space-2, 0.5rem) !important;
+ }
+
+ /* Time range buttons grid on mobile */
+ #context-overflow .ldr-time-range-btn,
+ #costs .ldr-time-range-btn {
+ flex: 1 1 auto !important;
+ min-width: 50px !important;
+ padding: 0.5rem 0.75rem !important;
+ font-size: 0.8rem !important;
+ }
+}
+
+/* Tablet view for metrics headers */
+@media (min-width: 768px) and (max-width: 991px) {
+ #context-overflow .ldr-page-header,
+ #costs .ldr-page-header,
+ #star-reviews .ldr-page-header,
+ #link-analytics .ldr-page-header {
+ flex-wrap: wrap !important;
+ gap: 1rem !important;
+ }
+
+ #context-overflow .ldr-page-header > div:first-child,
+ #costs .ldr-page-header > div:first-child {
+ flex-wrap: wrap !important;
+ gap: 0.75rem !important;
+ }
+}
+
+/* =============================================
+ 34. Metrics Navigation Button Grid
+ ============================================= */
+@media (max-width: 767px) {
+ /* Make nav buttons wrap into a 2-column grid on mobile */
+ #metrics .ldr-page-header > div:first-child,
+ .ldr-metrics-nav-grid {
+ display: grid !important;
+ grid-template-columns: 1fr !important;
+ gap: var(--space-2, 0.5rem) !important;
+ width: 100% !important;
+ }
+
+ /* Page title spans full width */
+ #metrics .ldr-page-header h1 {
+ grid-column: 1 / -1;
+ margin-bottom: var(--space-2, 0.5rem);
+ }
+
+ /* Nav buttons in a 2x2 grid */
+ #metrics .ldr-page-header .ldr-nav-link-btn,
+ .ldr-metrics-nav-grid .ldr-nav-link-btn {
+ width: 100%;
+ justify-content: center;
+ padding: var(--space-3, 0.75rem) var(--space-4, 1rem) !important;
+ font-size: 0.8rem !important;
+ }
+
+ /* Stack time selectors vertically */
+ #metrics .ldr-page-header > div:last-child {
+ flex-direction: column !important;
+ gap: var(--space-3, 0.75rem) !important;
+ width: 100% !important;
+ }
+
+ #metrics .ldr-time-range-selector {
+ width: 100% !important;
+ flex-wrap: wrap !important;
+ justify-content: flex-start !important;
+ margin-left: 0 !important;
+ }
+
+ #metrics .ldr-time-range-selector span {
+ width: 100% !important;
+ margin-bottom: var(--space-1, 0.25rem) !important;
+ }
+
+ #metrics .ldr-time-range-btn {
+ flex: 1 1 auto !important;
+ min-width: 60px !important;
+ }
+}
+
+/* Tablet - 2 column grid for nav buttons */
+@media (min-width: 768px) and (max-width: 991px) {
+ #metrics .ldr-page-header > div:first-child {
+ flex-wrap: wrap !important;
+ gap: 0.5rem !important;
+ }
+
+ #metrics .ldr-page-header .ldr-nav-link-btn {
+ flex: 1 1 auto;
+ min-width: 120px;
+ }
+}
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 3454f0eb13..165cb775fc 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -34,6 +34,29 @@
--glow-effect: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
--gradient-bg: linear-gradient(135deg, #2a2a3a 0%, #1e1e2d 100%);
+ /* Enhanced shadow scale for visual depth */
+ --card-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
+ --card-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
+ --card-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
+
+ /* Spacing scale (4px base) */
+ --space-1: 0.25rem; /* 4px */
+ --space-2: 0.5rem; /* 8px */
+ --space-3: 0.75rem; /* 12px */
+ --space-4: 1rem; /* 16px */
+ --space-5: 1.5rem; /* 24px */
+ --space-6: 2rem; /* 32px */
+ --space-8: 3rem; /* 48px */
+
+ /* Typography scale */
+ --text-xs: 0.75rem; /* 12px */
+ --text-sm: 0.875rem; /* 14px */
+ --text-base: 1rem; /* 16px */
+ --text-lg: 1.125rem; /* 18px */
+ --text-xl: 1.25rem; /* 20px */
+ --text-2xl: 1.5rem; /* 24px */
+ --text-3xl: 2rem; /* 32px */
+
/* Overlay colors for modals/sheets */
--overlay-color: rgba(var(--shadow-color-rgb), 0.5);
--backdrop-blur: blur(10px);
@@ -445,7 +468,7 @@ a:hover {
}
.ldr-page-header {
- margin-bottom: 1.5rem;
+ margin-bottom: var(--space-5, 1.5rem);
}
.ldr-page-header h1 {
@@ -454,18 +477,83 @@ a:hover {
color: var(--text-primary);
}
+/* Typography Hierarchy */
+.ldr-page-title {
+ font-size: var(--text-2xl, 1.5rem);
+ font-weight: 600;
+ color: var(--text-primary);
+ margin-bottom: var(--space-4, 1rem);
+ letter-spacing: -0.01em;
+ line-height: 1.3;
+}
+
+.ldr-section-title {
+ font-size: var(--text-lg, 1.125rem);
+ font-weight: 600;
+ color: var(--text-primary);
+ margin-bottom: var(--space-3, 0.75rem);
+ line-height: 1.4;
+}
+
+.ldr-subsection-title {
+ font-size: var(--text-base, 1rem);
+ font-weight: 500;
+ color: var(--text-secondary);
+ margin-bottom: var(--space-2, 0.5rem);
+ line-height: 1.4;
+}
+
+.ldr-label-text {
+ font-size: var(--text-sm, 0.875rem);
+ font-weight: 500;
+ color: var(--text-secondary);
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+}
+
+.ldr-helper-text {
+ font-size: var(--text-sm, 0.875rem);
+ color: var(--text-muted);
+ line-height: 1.5;
+}
+
/* Cards */
.ldr-card {
background-color: var(--bg-secondary);
border-radius: 12px;
- box-shadow: var(--card-shadow);
- margin-bottom: 1.5rem;
+ box-shadow: var(--card-shadow-sm, var(--card-shadow));
+ margin-bottom: var(--space-5, 1.5rem);
overflow: hidden;
border: 1px solid var(--border-color);
+ transition: box-shadow 0.2s ease, transform 0.2s ease;
+}
+
+.ldr-card:hover {
+ box-shadow: var(--card-shadow-md, var(--card-shadow));
+}
+
+/* Elevated cards for important sections */
+.ldr-card--elevated {
+ box-shadow: var(--card-shadow-md, var(--card-shadow));
+}
+
+.ldr-card--elevated:hover {
+ box-shadow: var(--card-shadow-lg);
+ transform: translateY(-1px);
+}
+
+/* Interactive cards that link somewhere */
+.ldr-card--interactive {
+ cursor: pointer;
+}
+
+.ldr-card--interactive:hover {
+ border-color: var(--accent-primary);
+ box-shadow: var(--card-shadow-md), 0 0 0 1px var(--accent-primary);
}
.ldr-card-content {
- padding: 1.5rem;
+ padding: var(--space-5, 1.5rem);
}
/* Form Elements */
@@ -568,6 +656,56 @@ textarea:focus, input[type="text"]:focus {
justify-content: flex-end;
}
+/* Metrics Navigation Links (colored button grid) */
+.ldr-metrics-nav-grid {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-3, 0.75rem);
+ align-items: center;
+}
+
+.ldr-nav-link-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2, 0.5rem);
+ color: white;
+ padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
+ border-radius: 8px;
+ text-decoration: none;
+ font-size: var(--text-sm, 0.875rem);
+ font-weight: 500;
+ transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
+ box-shadow: var(--card-shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
+}
+
+.ldr-nav-link-btn:hover {
+ filter: brightness(1.1);
+ transform: translateY(-2px);
+ box-shadow: var(--card-shadow-md, 0 4px 12px rgba(0,0,0,0.15));
+ color: white;
+ text-decoration: none;
+}
+
+.ldr-nav-link-btn:active {
+ transform: translateY(0);
+}
+
+.ldr-nav-link-btn.ldr-nav-accent {
+ background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
+}
+
+.ldr-nav-link-btn.ldr-nav-success {
+ background: var(--success-color);
+}
+
+.ldr-nav-link-btn.ldr-nav-warning {
+ background: linear-gradient(135deg, var(--warning-color) 0%, var(--error-color) 100%);
+}
+
+.ldr-nav-link-btn.ldr-nav-info {
+ background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-primary) 100%);
+}
+
/* Mode Selection */
.ldr-mode-selection {
display: flex;
@@ -2497,3 +2635,64 @@ input[type="number"].ldr-form-control::-webkit-inner-spin-button {
border-color: rgba(var(--accent-tertiary-rgb), 0.3);
color: var(--accent-tertiary);
}
+
+/* =============================================
+ Desktop Layout Optimization (Large Screens)
+ ============================================= */
+
+/* Large desktop (1200px+) */
+@media (min-width: 1200px) {
+ .ldr-main-content {
+ max-width: 1400px;
+ margin: 0 auto;
+ padding: var(--space-6, 2rem);
+ padding-top: calc(60px + var(--space-6, 2rem)); /* Account for fixed header */
+ }
+
+ /* Two-column layout for metrics on desktop */
+ .ldr-metrics-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: var(--space-5, 1.5rem);
+ }
+
+ /* Better use of horizontal space for settings */
+ .ldr-settings-container {
+ max-width: 1000px;
+ margin: 0 auto;
+ }
+
+ /* Wider cards on large screens */
+ .ldr-card-content {
+ padding: var(--space-6, 2rem);
+ }
+}
+
+/* Extra large desktop (1600px+) */
+@media (min-width: 1600px) {
+ .ldr-main-content {
+ max-width: 1600px;
+ }
+
+ /* Three-column layout for metrics on extra large screens */
+ .ldr-metrics-grid {
+ grid-template-columns: repeat(3, 1fr);
+ }
+
+ /* Charts can use more space */
+ .ldr-chart-container {
+ min-height: 400px;
+ }
+}
+
+/* Ultra-wide screens (1920px+) */
+@media (min-width: 1920px) {
+ .ldr-main-content {
+ max-width: 1800px;
+ }
+
+ /* Even larger padding for comfortable reading */
+ .ldr-card-content {
+ padding: var(--space-8, 3rem) var(--space-6, 2rem);
+ }
+}
diff --git a/src/local_deep_research/web/static/css/themes.css b/src/local_deep_research/web/static/css/themes.css
index 9eef71d9ba..0c644a936f 100644
--- a/src/local_deep_research/web/static/css/themes.css
+++ b/src/local_deep_research/web/static/css/themes.css
@@ -9,8 +9,8 @@
[data-theme="hashed"] {
--bg-primary: #121212;
--bg-secondary: #1e1e2d;
- --bg-tertiary: #2a2a3a;
- --accent-primary: #6e4ff6;
+ --bg-tertiary: #2a2520; /* Warmer tertiary for better contrast */
+ --accent-primary: #7c5cfc; /* Slightly more vibrant purple */
--accent-secondary: #9179f0;
--accent-tertiary: #40bfff;
--text-primary: #f5f5f5;
@@ -24,8 +24,8 @@
/* RGB variants for rgba() usage */
--bg-primary-rgb: 18, 18, 18;
--bg-secondary-rgb: 30, 30, 45;
- --bg-tertiary-rgb: 42, 42, 58;
- --accent-primary-rgb: 110, 79, 246;
+ --bg-tertiary-rgb: 42, 37, 32; /* Updated for warmer tertiary */
+ --accent-primary-rgb: 124, 92, 252; /* Updated for more vibrant accent */
--accent-secondary-rgb: 145, 121, 240;
--accent-tertiary-rgb: 64, 191, 255;
--text-primary-rgb: 245, 245, 245;
@@ -36,9 +36,12 @@
--warning-color-rgb: 249, 188, 11;
--error-color-rgb: 250, 92, 124;
- /* Shadows and effects */
- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
- --glow-effect: 0 0 15px rgba(110, 79, 246, 0.3);
+ /* Shadows and effects - enhanced for better depth */
+ --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.2);
+ --card-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
+ --card-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
+ --card-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.12);
+ --glow-effect: 0 0 15px rgba(124, 92, 252, 0.35); /* More vibrant glow */
--gradient-bg: linear-gradient(135deg, #2a2a3a 0%, #1e1e2d 100%);
--overlay-color: rgba(0, 0, 0, 0.5);
--backdrop-blur: blur(10px);
diff --git a/src/local_deep_research/web/themes/core/hashed.css b/src/local_deep_research/web/themes/core/hashed.css
index 6416137396..edf99df99a 100644
--- a/src/local_deep_research/web/themes/core/hashed.css
+++ b/src/local_deep_research/web/themes/core/hashed.css
@@ -11,8 +11,8 @@ is_default = true
[data-theme="hashed"] {
--bg-primary: #121212;
--bg-secondary: #1e1e2d;
- --bg-tertiary: #2a2a3a;
- --accent-primary: #6e4ff6;
+ --bg-tertiary: #2a2520; /* Warmer tertiary for better contrast */
+ --accent-primary: #7c5cfc; /* Slightly more vibrant purple */
--accent-secondary: #9179f0;
--accent-tertiary: #40bfff;
--text-primary: #f5f5f5;
@@ -26,8 +26,8 @@ is_default = true
/* RGB variants for rgba() usage */
--bg-primary-rgb: 18, 18, 18;
--bg-secondary-rgb: 30, 30, 45;
- --bg-tertiary-rgb: 42, 42, 58;
- --accent-primary-rgb: 110, 79, 246;
+ --bg-tertiary-rgb: 42, 37, 32; /* Updated for warmer tertiary */
+ --accent-primary-rgb: 124, 92, 252; /* Updated for more vibrant accent */
--accent-secondary-rgb: 145, 121, 240;
--accent-tertiary-rgb: 64, 191, 255;
--text-primary-rgb: 245, 245, 245;
@@ -38,9 +38,12 @@ is_default = true
--warning-color-rgb: 249, 188, 11;
--error-color-rgb: 250, 92, 124;
- /* Shadows and effects */
- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
- --glow-effect: 0 0 15px rgba(110, 79, 246, 0.3);
+ /* Shadows and effects - enhanced for better depth */
+ --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.2);
+ --card-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
+ --card-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
+ --card-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.12);
+ --glow-effect: 0 0 15px rgba(124, 92, 252, 0.35); /* More vibrant glow */
--gradient-bg: linear-gradient(135deg, #2a2a3a 0%, #1e1e2d 100%);
--overlay-color: rgba(0, 0, 0, 0.5);
--backdrop-blur: blur(10px);