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