perf(connections): improve scrolling performance on macOS (#5787)

This commit is contained in:
Sline 2025-12-11 17:54:04 +08:00 committed by GitHub
parent 104fd11b04
commit 2aaa91f4cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -478,6 +478,8 @@ export const ConnectionTable = (props: Props) => {
flex: 1,
minHeight: 0,
overflow: "auto",
WebkitOverflowScrolling: "touch",
overscrollBehavior: "contain",
borderRadius: 1,
border: "none",
"&::-webkit-scrollbar": {

View File

@ -129,8 +129,9 @@ const ConnectionsPage = () => {
height: "100%",
display: "flex",
flexDirection: "column",
overflow: "auto",
overflow: "hidden",
borderRadius: "8px",
minHeight: 0,
}}
header={
<Box sx={{ display: "flex", alignItems: "center", gap: 2 }}>
@ -243,6 +244,8 @@ const ConnectionsPage = () => {
style={{
flex: 1,
borderRadius: "8px",
WebkitOverflowScrolling: "touch",
overscrollBehavior: "contain",
}}
data={filterConn}
itemContent={(_, item) => (