Skip to content

Commit

Permalink
fix: adjust MessageBubble component to allow full-width rendering on …
Browse files Browse the repository at this point in the history
…medium screens
  • Loading branch information
heimoshuiyu committed Feb 6, 2025
1 parent eec2fb5 commit 25c9577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export default function Message(props: { messageIndex: number }) {
) : chat.tool_calls ? (
<MessageToolCall chat={chat} copyToClipboard={copyToClipboard} />
) : renderMarkdown ? (
<div className="message-content max-w-full md:max-w-[75%]">
<div className="message-content max-w-full md:max-w-[100%]">
<Markdown
remarkPlugins={[remarkMath]}
rehypePlugins={[rehypeKatex]}
Expand Down Expand Up @@ -356,7 +356,7 @@ export default function Message(props: { messageIndex: number }) {
</Markdown>
</div>
) : (
<div className="message-content max-w-full md:max-w-[75%]">
<div className="message-content max-w-full md:max-w-[100%]">
{chat.content &&
(chat.logprobs && renderColor
? chat.logprobs.content
Expand Down

0 comments on commit 25c9577

Please sign in to comment.