From f154aeafeafe131ca09802c2dfc12470f0fb68df Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 19 Jun 2025 21:23:10 -0700 Subject: [PATCH] Optimize chat scrolling for the 40th time, hopefully the last one --- css/main.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/css/main.css b/css/main.css index bc59f833..b9bf2ba5 100644 --- a/css/main.css +++ b/css/main.css @@ -1670,3 +1670,15 @@ button:focus { #textbox-notebook span { display: none; } + +.chat-parent { + /* Optimize for scrolling performance */ + will-change: scroll-position; + contain: layout style paint; + + /* Ensure GPU acceleration */ + transform: translateZ(0); + + /* Prevent layout shifts */ + overflow-anchor: none; +}