From 73fd5b6ab60f7f00862dbb527d1edf0f669ba9fb Mon Sep 17 00:00:00 2001 From: Jinyuan Huang <88757735+BernieHuang2008@users.noreply.github.com> Date: Thu, 14 Sep 2023 05:49:15 +0000 Subject: [PATCH] [mod] UI smooth scroll added / CSS scroll-behavior This PR improves the UX by making auto-scroll more smoother. The css is changed so all the auto-scroll will be smoother but User-scroll will not be influenced. The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs.[1] [1] https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior --- searx/static/themes/simple/src/less/style.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 9824ed82d..5e0c77819 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -66,6 +66,8 @@ html { background-color: var(--color-base-background); padding: 0; margin: 0; + + scroll-behavior: smooth; } body,