mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Improve display of user messages
This commit is contained in:
1 file changed
+2
-7
@@ -154,14 +154,9 @@ export const AIMessageItem = memo(({
|
|||||||
// User messages: right-aligned bubble without avatar/name
|
// User messages: right-aligned bubble without avatar/name
|
||||||
return (
|
return (
|
||||||
<div className="flex justify-end py-6">
|
<div className="flex justify-end py-6">
|
||||||
<div className="max-w-[80%] bg-primary text-primary-foreground rounded-2xl rounded-br-md px-4 py-3">
|
<div className="max-w-[80%] bg-secondary rounded-2xl rounded-br-md px-4 py-3">
|
||||||
<div className="text-sm whitespace-pre-wrap break-words">
|
<div className="text-sm whitespace-pre-wrap break-words">
|
||||||
<Streamdown
|
{getContent()}
|
||||||
className='size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0'
|
|
||||||
parseIncompleteMarkdown={isCurrentlyLoading}
|
|
||||||
>
|
|
||||||
{getContent()}
|
|
||||||
</Streamdown>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user