From 156cbe7be64599af95356905c7f01bfcea87c80f Mon Sep 17 00:00:00 2001 From: elianiva Date: Fri, 22 Aug 2025 20:16:10 +0700 Subject: [PATCH 1/2] fix(ui): make auto approve toggle trigger stay --- .../src/components/chat/AutoApproveMenu.tsx | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/webview-ui/src/components/chat/AutoApproveMenu.tsx b/webview-ui/src/components/chat/AutoApproveMenu.tsx index e6accfd87d..09f79f4a45 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,7 +234,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { {displayText} { />
- - {isExpanded && ( -
-
- , - }} - /> -
- - -
- )} ) } From 044419c5fd1ee8b6f2c6569e6074f5d76e6702ae Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Sat, 23 Aug 2025 12:46:25 -0500 Subject: [PATCH 2/2] feat: add smooth chevron rotation animation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace inline styles with Tailwind CSS classes for better maintainability - Add smooth 200ms transition when expanding/collapsing - Chevron rotates from right (→) to up (↑) matching the content position above - Consistent with other components like ApiConfigSelector --- webview-ui/src/components/chat/AutoApproveMenu.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/webview-ui/src/components/chat/AutoApproveMenu.tsx b/webview-ui/src/components/chat/AutoApproveMenu.tsx index 09f79f4a45..8961fc7f5d 100644 --- a/webview-ui/src/components/chat/AutoApproveMenu.tsx +++ b/webview-ui/src/components/chat/AutoApproveMenu.tsx @@ -234,11 +234,9 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { {displayText}