Skip to content

Commit

Permalink
fix(ask-message): improve styling for message display
Browse files Browse the repository at this point in the history
- Updated AskMessage component to conditionally apply max height and overflow styles based on the message sender (human or bot).
- Enhanced user experience by ensuring proper styling for message text display.
  • Loading branch information
crazygo committed Jan 8, 2025
1 parent 9180a0a commit c64c858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ask-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function AskMessage(props: AskMessageItem) {
onMouseEnter={() => setShowCopyButton(true)}
onMouseLeave={() => setShowCopyButton(false)}
>
<div className="pr-8 max-h-16 overflow-auto">
<div className={classNames("pr-8", name === 'human' ? 'max-h-16 overflow-auto' : '')}>
{messageItem}
</div>
{showCopyButton && <CopyButton text={text} />}
Expand Down

0 comments on commit c64c858

Please sign in to comment.