Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions frontend/src/components/ChatBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export default function Component({
})();

return (
<div className="flex flex-col w-full">
<div className="flex flex-col w-full min-w-0">
<TokenWarning
messages={messages}
currentInput={inputValue}
Expand Down Expand Up @@ -347,7 +347,7 @@ export default function Component({
onChange={(e) => setSystemPromptValue(e.target.value)}
placeholder="Enter instructions for the AI (e.g., 'You are a helpful coding assistant...')"
rows={2}
className="w-full p-2 text-sm border border-muted-foreground/20 rounded-md bg-muted/50 placeholder:text-muted-foreground/70 focus:outline-none focus:ring-1 focus:ring-ring resize-none transition-colors"
className="w-full p-2 text-sm border border-muted-foreground/20 rounded-md bg-muted/50 placeholder:text-muted-foreground/70 focus:outline-none focus:ring-1 focus:ring-ring resize-none transition-colors overflow-x-auto max-w-full min-w-0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: These overflow properties may conflict. Remove overflow-x-auto as overflowY: 'auto' is already set in the style prop

style={{
height: "auto",
resize: "none",
Expand Down Expand Up @@ -402,6 +402,7 @@ export default function Component({
"placeholder:text-muted-foreground focus-visible:outline-none",
"disabled:cursor-not-allowed disabled:opacity-50",
"!border-0 shadow-none !border-none focus-visible:ring-0 !ring-0",
"overflow-x-auto max-w-full min-w-0",
billingStatus === null && "animate-pulse"
)}
value={inputValue}
Expand Down