diff --git a/src/components/proxy/proxy-groups.tsx b/src/components/proxy/proxy-groups.tsx index 85c23cfc..7bf2697a 100644 --- a/src/components/proxy/proxy-groups.tsx +++ b/src/components/proxy/proxy-groups.tsx @@ -381,6 +381,11 @@ export const ProxyGroups = (props: Props) => { return Array.from(new Set(names)); }, [renderList]); + const virtuosoHeight = + mode === "rule" && proxyGroupNames.length > 0 + ? "calc(100% - 80px)" + : "calc(100% - 14px)"; + if (mode === "direct") { return ; } @@ -464,10 +469,7 @@ export const ProxyGroups = (props: Props) => { 0 - ? "calc(100% - 80px)" - : "calc(100% - 14px)", + height: virtuosoHeight, }} totalCount={renderList.length} increaseViewportBy={{ top: 200, bottom: 200 }} @@ -607,7 +609,7 @@ export const ProxyGroups = (props: Props) => {