From 61e920b66188a8f59e64ad83ab1e0d2319a452f5 Mon Sep 17 00:00:00 2001 From: zhangtony239 Date: Sat, 26 Apr 2025 16:50:58 +0800 Subject: [PATCH 1/2] Fix: Adjust padding in chat view for better UI --- webview-ui/src/components/chat/ChatView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index a12dae1a894..76c3a51fcc3 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -1265,7 +1265,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction )}
0 ? "mt-0" : ""} p-10 pt-5`}> + className={` w-full flex flex-col gap-4 m-auto ${isExpanded && tasks.length > 0 ? "mt-0" : ""} p-3.5 pt-5`}> {telemetrySetting === "unset" && } {/* Show the task history preview if expanded and tasks exist */} From d1ca3d70e147a54111bfc809856067d1af4430d4 Mon Sep 17 00:00:00 2001 From: zhangtony239 Date: Tue, 29 Apr 2025 23:54:37 +0800 Subject: [PATCH 2/2] Add transition for chat view padding --- webview-ui/src/components/chat/ChatView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 76c3a51fcc3..a5eef1582e1 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -1265,7 +1265,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction )}
0 ? "mt-0" : ""} p-3.5 pt-5`}> + className={` w-full flex flex-col gap-4 m-auto ${isExpanded && tasks.length > 0 ? "mt-0" : ""} max-[370px]:p-3.5 p-10 pt-5 transition-all duration-300`}> {telemetrySetting === "unset" && } {/* Show the task history preview if expanded and tasks exist */}