mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 18:10:47 -04:00
chat line fix lole
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user