Revert "feat: imporve the layout of proxies page (#5647)"

This reverts commit 8c1caf8555beaba8b3b9e514f7d8fc60a6368219.
This commit is contained in:
Slinetrac 2025-11-29 20:38:38 +08:00
parent bd2d86fd8f
commit 882f1a2a4a
No known key found for this signature in database

View File

@ -597,17 +597,15 @@ export const ProxyGroups = (props: Props) => {
initialScrollTop={scrollPositionRef.current[mode]} initialScrollTop={scrollPositionRef.current[mode]}
computeItemKey={(index) => renderList[index].key} computeItemKey={(index) => renderList[index].key}
itemContent={(index) => ( itemContent={(index) => (
<div style={{ paddingRight: 14 }}> <ProxyRender
<ProxyRender key={renderList[index].key}
key={renderList[index].key} item={renderList[index]}
item={renderList[index]} indent={mode === "rule" || mode === "script"}
indent={mode === "rule" || mode === "script"} onLocation={handleLocation}
onLocation={handleLocation} onCheckAll={handleCheckAll}
onCheckAll={handleCheckAll} onHeadState={onHeadState}
onHeadState={onHeadState} onChangeProxy={handleChangeProxy}
onChangeProxy={handleChangeProxy} />
/>
</div>
)} )}
/> />
<ScrollTopButton show={showScrollTop} onClick={scrollToTop} /> <ScrollTopButton show={showScrollTop} onClick={scrollToTop} />