mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 01:33:45 +08:00
feat: Improve Virtuoso list rendering for proxy groups
This commit is contained in:
parent
a179591ac2
commit
772f3268ce
@ -204,10 +204,15 @@ export const ProxyGroups = (props: Props) => {
|
||||
ref={virtuosoRef}
|
||||
style={{ height: "calc(100% - 16px)" }}
|
||||
totalCount={renderList.length}
|
||||
increaseViewportBy={256}
|
||||
increaseViewportBy={{ top: 256, bottom: 256 }}
|
||||
overscan={150}
|
||||
defaultItemHeight={56}
|
||||
scrollerRef={(ref) => {
|
||||
scrollerRef.current = ref;
|
||||
}}
|
||||
components={{
|
||||
Footer: () => <div style={{ height: "16px" }} />,
|
||||
}}
|
||||
itemContent={(index) => (
|
||||
<ProxyRender
|
||||
key={renderList[index].key}
|
||||
|
Loading…
x
Reference in New Issue
Block a user