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.

chore(news): drop redundant inline smooth-scroll override (#4447)

LearningCircuit43359176e4ed
diff --git a/src/local_deep_research/web/static/js/news-enhancements.js b/src/local_deep_research/web/static/js/news-enhancements.js
index de0f0e5c28..b9f33a24ab 100644
--- a/src/local_deep_research/web/static/js/news-enhancements.js
+++ b/src/local_deep_research/web/static/js/news-enhancements.js
@@ -89,8 +89,18 @@ document.addEventListener('DOMContentLoaded', function() {
});
}
- // Add smooth scroll behavior
- document.documentElement.style.scrollBehavior = 'smooth';
+ // Smooth scrolling intentionally NOT set here: the Vite bundle already
+ // ships Bootstrap's reboot rule
+ // `@media (prefers-reduced-motion: no-preference) { :root { scroll-behavior: smooth } }`,
+ // so users without a reduced-motion preference get smooth scrolling
+ // anyway. The previous inline assignment
+ // (`document.documentElement.style.scrollBehavior = 'smooth'`) was
+ // redundant for them and, unlike the gated CSS rule, ignored the user's
+ // motion preference outright — only the bundled
+ // `prefers-reduced-motion: reduce` guard (`* { scroll-behavior: auto
+ // !important }`) saved reduced-motion users from it. Inline styles like
+ // this also defeat Playwright's reducedMotion emulation in UI tests
+ // (see PRs #4442/#4445).
// Enhance impact bars with animation
const impactBars = document.querySelectorAll('.ldr-impact-fill');