mirror of
https://github.com/oobabooga/textgen.git
synced 2026-08-05 01:30:41 -05:00
Optimize chat scrolling for the 40th time, hopefully the last one
This commit is contained in:
12
css/main.css
12
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user