From b9e2610b38623c87684a426998f3e4be467fcb1a Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Thu, 12 Sep 2024 12:49:00 -0400 Subject: [PATCH] Fix code accordian text alignment --- webview-ui/src/components/CodeAccordian.tsx | 42 ++++++++++++++------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/webview-ui/src/components/CodeAccordian.tsx b/webview-ui/src/components/CodeAccordian.tsx index 4169917..aac599d 100644 --- a/webview-ui/src/components/CodeAccordian.tsx +++ b/webview-ui/src/components/CodeAccordian.tsx @@ -49,19 +49,35 @@ const CodeAccordian = ({ code, diff, language, path, isFeedback, isExpanded, onT msUserSelect: "none", }} onClick={onToggleExpand}> - {isFeedback && } - - {isFeedback ? "User Edits" : removeLeadingNonAlphanumeric(path ?? "") + "\u200E"} - + {isFeedback ? ( +
+ + + User Edits + +
+ ) : ( + <> + + {removeLeadingNonAlphanumeric(path ?? "") + "\u200E"} + + + )} )}