Skip to content

Commit 4091131

Browse files
authored
fix display issues with too long profile names in ChatTextArea.tsx (#3371)
1 parent a79d187 commit 4091131

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,8 +1054,14 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
10541054

10551055
return (
10561056
<div className="flex justify-between gap-2 w-full h-5">
1057-
<div className={cn({ "font-medium": isCurrentConfig })}>{label}</div>
1058-
<div className="flex justify-end w-10">
1057+
<div
1058+
className={cn("truncate min-w-0 overflow-hidden", {
1059+
"font-medium": isCurrentConfig,
1060+
})}
1061+
title={label}>
1062+
{label}
1063+
</div>
1064+
<div className="flex justify-end w-10 flex-shrink-0">
10591065
<div
10601066
className={cn("size-5 p-1", {
10611067
"block group-hover:hidden": !pinned,

0 commit comments

Comments
 (0)