chat line fix lole

This commit is contained in:
legop3
2026-05-19 18:23:30 -04:00
parent 4d179b4372
commit 6c3ac6d22d
3 changed files with 6 additions and 4 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,7 +11,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Roomba Rover" /> <meta name="apple-mobile-web-app-title" content="Roomba Rover" />
<title>Roomba Rover</title> <title>Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-ClGCoQVl.js"></script> <script type="module" crossorigin src="/assets/index-D7hULYLE.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSJcZoco.css"> <link rel="stylesheet" crossorigin href="/assets/index-DSJcZoco.css">
</head> </head>
<body> <body>
@@ -78,7 +78,7 @@ function ProfileAvatar({ imageUrl, label }) {
); );
} }
export function ChatIdentity({ message, toolsToggle = null }) { export function ChatIdentity({ message, toolsToggle = null, inlineText = '' }) {
const discordLabel = message.fromDiscord const discordLabel = message.fromDiscord
? `${message.discordGuildName || 'Discord'} · ${displayName(message)}` ? `${message.discordGuildName || 'Discord'} · ${displayName(message)}`
: null; : null;
@@ -113,6 +113,7 @@ export function ChatIdentity({ message, toolsToggle = null }) {
{message.roverId} {message.roverId}
</span> </span>
)} )}
{inlineText ? <span className="min-w-0 break-words leading-tight whitespace-pre-wrap">{inlineText}</span> : null}
{toolsToggle} {toolsToggle}
</span> </span>
); );
@@ -144,6 +145,7 @@ export default function ChatMessageRow({ message }) {
<span className={`min-w-0 flex-1 ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}> <span className={`min-w-0 flex-1 ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}>
<ChatIdentity <ChatIdentity
message={message} message={message}
inlineText={!open && hasText ? message.text : ''}
toolsToggle={ toolsToggle={
toolCalls.length > 0 ? ( toolCalls.length > 0 ? (
<button <button
@@ -176,7 +178,7 @@ export default function ChatMessageRow({ message }) {
})} })}
</div> </div>
) : null} ) : null}
{hasText ? ( {open && hasText ? (
<div className={`w-full break-words leading-tight whitespace-pre-wrap ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}> <div className={`w-full break-words leading-tight whitespace-pre-wrap ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}>
{message.text} {message.text}
</div> </div>