Skip to content

Commit f1bfa22

Browse files
committed
fix alignment for short user messages
1 parent 0518b53 commit f1bfa22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/(main)/chats/[id]/chat-log.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function ChatLog({
6161

6262
function UserMessage({ content }: { content: string }) {
6363
return (
64-
<div className="relative inline-flex w-4/5 items-end gap-3 self-end">
64+
<div className="relative inline-flex max-w-[80%] items-end gap-3 self-end">
6565
<div className="whitespace-pre-wrap rounded bg-white px-4 py-2 text-gray-600 shadow">
6666
{content}
6767
</div>

0 commit comments

Comments
 (0)