mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
raaahhhhhflkhdj
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,8 +11,8 @@
|
|||||||
<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-BsG3bRcY.js"></script>
|
<script type="module" crossorigin src="/assets/index-DHAX2YQZ.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DSJcZoco.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-CVBRlegx.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ function ProfileAvatar({ imageUrl, label }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ChatIdentity({ message, toolsToggle = null, inlineText = '' }) {
|
export function ChatIdentity({ message, toolsToggle = null }) {
|
||||||
const discordLabel = message.fromDiscord
|
const discordLabel = message.fromDiscord
|
||||||
? `${message.discordGuildName || 'Discord'} · ${displayName(message)}`
|
? `${message.discordGuildName || 'Discord'} · ${displayName(message)}`
|
||||||
: null;
|
: null;
|
||||||
@@ -114,7 +114,6 @@ export function ChatIdentity({ message, toolsToggle = null, inlineText = '' }) {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{toolsToggle}
|
{toolsToggle}
|
||||||
{inlineText ? <span className="min-w-0 break-words leading-tight whitespace-pre-wrap">{inlineText}</span> : null}
|
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -141,11 +140,10 @@ export default function ChatMessageRow({ message }) {
|
|||||||
const hasText = Boolean(String(message?.text || '').trim());
|
const hasText = Boolean(String(message?.text || '').trim());
|
||||||
return (
|
return (
|
||||||
<div className={chatRowClass(message)}>
|
<div className={chatRowClass(message)}>
|
||||||
<div className="flex w-full items-center gap-0.5">
|
<div className="grid w-full grid-cols-[auto,1fr,auto] items-center gap-0.5">
|
||||||
<span className={`min-w-0 flex-1 ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}>
|
<span className={`min-w-0 ${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
|
||||||
@@ -159,6 +157,13 @@ export default function ChatMessageRow({ message }) {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
{!open && hasText ? (
|
||||||
|
<span className={`min-w-0 break-words leading-tight whitespace-pre-wrap ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}>
|
||||||
|
{message.text}
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<span />
|
||||||
|
)}
|
||||||
<span className="shrink-0 text-[0.65rem] text-slate-400/60">
|
<span className="shrink-0 text-[0.65rem] text-slate-400/60">
|
||||||
{formatTime(message.ts)}
|
{formatTime(message.ts)}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user