diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index 735bc5c668..4c3f978ce9 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -144,6 +144,12 @@ const ModelContainer = styled.div` min-width: 0; ` +const ModelButtonWrapper = styled.div` + display: inline-flex; // Make it shrink to content + min-width: 0; // Allow shrinking + max-width: 100%; // Don't overflow parent +` + const ModelDisplayButton = styled.a<{ isActive?: boolean }>` padding: 0px 0px; height: 20px; @@ -915,7 +921,7 @@ const ChatTextArea = forwardRef( -
+ ( tabIndex={0}> {modelDisplayName} -
+ {showModelSelector && (