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: Add ldr- prefix to all remaining CSS classes in JavaScript files

LearningCircuit82684bff78ee
diff --git a/src/local_deep_research/web/static/js/components/custom_dropdown.js b/src/local_deep_research/web/static/js/components/custom_dropdown.js
index 88c2841eae..e221afe2b0 100644
--- a/src/local_deep_research/web/static/js/components/custom_dropdown.js
+++ b/src/local_deep_research/web/static/js/components/custom_dropdown.js
@@ -166,10 +166,10 @@
dropdownList.style.display = 'block';
// Add active class for dropdown.
- dropdownList.classList.add('dropdown-active');
+ dropdownList.classList.add('ldr-dropdown-active');
- // Add dropdown-active class to body
- document.body.classList.add('dropdown-active');
+ // Add ldr-dropdown-active class to body
+ document.body.classList.add('ldr-dropdown-active');
// Add a small offset (6px) to ensure it's visibly separated from the input
const verticalOffset = 6;
@@ -205,10 +205,10 @@
// Hide first
dropdownList.style.display = 'none';
// Remove active class
- dropdownList.classList.remove('dropdown-active');
+ dropdownList.classList.remove('ldr-dropdown-active');
- // Remove dropdown-active class from body
- document.body.classList.remove('dropdown-active');
+ // Remove ldr-dropdown-active class from body
+ document.body.classList.remove('ldr-dropdown-active');
// Reset position styles
dropdownList.style.left = '';
diff --git a/src/local_deep_research/web/static/js/mobile-navigation.js b/src/local_deep_research/web/static/js/mobile-navigation.js
index c0e2dbddeb..4fb4883449 100644
--- a/src/local_deep_research/web/static/js/mobile-navigation.js
+++ b/src/local_deep_research/web/static/js/mobile-navigation.js
@@ -319,7 +319,7 @@
if (this.elements.nav) {
this.elements.nav.classList.add('visible');
}
- document.body.classList.add('has-mobile-nav');
+ document.body.classList.add('ldr-has-mobile-nav');
// Hide desktop sidebar on mobile
if (sidebar) {
@@ -330,7 +330,7 @@
if (this.elements.nav) {
this.elements.nav.classList.remove('visible');
}
- document.body.classList.remove('has-mobile-nav');
+ document.body.classList.remove('ldr-has-mobile-nav');
// Show desktop sidebar on desktop
if (sidebar && sidebar.getAttribute('data-mobile-hidden') === 'true') {
@@ -474,7 +474,7 @@
if (this.elements.nav) this.elements.nav.remove();
if (this.elements.sheet) this.elements.sheet.remove();
if (this.elements.overlay) this.elements.overlay.remove();
- document.body.classList.remove('has-mobile-nav');
+ document.body.classList.remove('ldr-has-mobile-nav');
this.initialized = false;
}
}
diff --git a/src/local_deep_research/web/static/js/services/socket.js b/src/local_deep_research/web/static/js/services/socket.js
index aadfcb37e3..07f386275d 100644
--- a/src/local_deep_research/web/static/js/services/socket.js
+++ b/src/local_deep_research/web/static/js/services/socket.js
@@ -729,10 +729,10 @@ window.socket = (function() {
// Update button UI
const buttons = document.querySelectorAll('.ldr-filter-buttons .ldr-small-btn');
buttons.forEach(button => {
- button.classList.remove('selected');
+ button.classList.remove('ldr-selected');
if (button.textContent.toLowerCase() === type ||
(type === 'all' && button.textContent.toLowerCase() === 'all')) {
- button.classList.add('selected');
+ button.classList.add('ldr-selected');
}
});
diff --git a/src/local_deep_research/web/static/js/services/ui.js b/src/local_deep_research/web/static/js/services/ui.js
index b8db46cc9d..7fc51cb6fa 100644
--- a/src/local_deep_research/web/static/js/services/ui.js
+++ b/src/local_deep_research/web/static/js/services/ui.js
@@ -364,7 +364,7 @@ function showAlert(message, type = 'info', skipIfToastShown = true) {
// Add a close button
const closeBtn = document.createElement('span');
- closeBtn.className = 'alert-close';
+ closeBtn.className = 'ldr-alert-close';
closeBtn.innerHTML = '×';
closeBtn.addEventListener('click', () => {
alert.remove();
diff --git a/src/local_deep_research/web/templates/auth/register.html b/src/local_deep_research/web/templates/auth/register.html
index a4950b52ed..08bb870043 100644
--- a/src/local_deep_research/web/templates/auth/register.html
+++ b/src/local_deep_research/web/templates/auth/register.html
@@ -128,7 +128,7 @@
color: var(--error-color);
}
- .danger-alert strong {
+ .ldr-danger-alert strong {
display: block;
margin-bottom: 0.5rem;
}
@@ -246,9 +246,9 @@
background: var(--bg-tertiary);
}
- .strength-weak { background-color: var(--error-color); width: 33%; }
- .strength-medium { background-color: var(--warning-color); width: 66%; }
- .strength-strong { background-color: var(--success-color); width: 100%; }
+ .ldr-strength-weak { background-color: var(--error-color); width: 33%; }
+ .ldr-strength-medium { background-color: var(--warning-color); width: 66%; }
+ .ldr-strength-strong { background-color: var(--success-color); width: 100%; }
.ldr-acknowledge-box {
background: rgba(250, 92, 124, 0.05);
@@ -344,7 +344,7 @@
color: var(--accent-secondary);
}
- .browser-hint {
+ .ldr-browser-hint {
display: flex;
align-items: center;
justify-content: center;
@@ -354,7 +354,7 @@
margin-top: 1rem;
}
- .browser-hint i {
+ .ldr-browser-hint i {
font-size: 1rem;
}
</style>