feat: add viewportOptions to scrollbox for padding adjustments to avoid scrollbar overlap (#5703)

pull/5705/head
Nalin Singh 2025-12-18 02:39:41 +05:30 committed by GitHub
parent 16b41d2bea
commit 4d7c3f56fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -840,6 +840,9 @@ export function Session() {
</Show>
<scrollbox
ref={(r) => (scroll = r)}
viewportOptions={{
paddingRight: showScrollbar() ? 1 : 0,
}}
verticalScrollbarOptions={{
paddingLeft: 1,
visible: showScrollbar(),