From fc70012f5405bd9441c2bdf512b20833b26b3591 Mon Sep 17 00:00:00 2001 From: Dicha Zelianivan Arkana <51877647+elianiva@users.noreply.github.com> Date: Sun, 24 Aug 2025 00:54:23 +0700 Subject: [PATCH] fix(ui): make auto approve toggle trigger stay (#7318) Co-authored-by: daniel-lxs --- .../src/components/chat/AutoApproveMenu.tsx | 48 +++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/webview-ui/src/components/chat/AutoApproveMenu.tsx b/webview-ui/src/components/chat/AutoApproveMenu.tsx index e6accfd87d..8961fc7f5d 100644 --- a/webview-ui/src/components/chat/AutoApproveMenu.tsx +++ b/webview-ui/src/components/chat/AutoApproveMenu.tsx @@ -157,12 +157,31 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { overflowY: "auto", ...style, }}> + {isExpanded && ( +
+
+ , + }} + /> +
+ + +
+ )} +
@@ -215,33 +234,12 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { {displayText}
- - {isExpanded && ( -
-
- , - }} - /> -
- - -
- )} ) }