Skip to content

Commit 6a5564d

Browse files
committed
style: remove vertical gap of message performance stats
1 parent aaf823f commit 6a5564d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

app/components/chat.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@
523523
justify-content: end;
524524
align-items: center;
525525
flex-wrap: wrap;
526-
gap: 6px;
526+
gap: 0 6px;
527527

528528
.chat-message-usage {
529529
display: flex;

app/components/chat.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,6 @@ function _Chat() {
583583
const isStreaming = session.messages.some((m) => m.streaming);
584584

585585
const [showExport, setShowExport] = useState(false);
586-
const [engineStat, setEngineStats] = useState<ReactElement | undefined>(
587-
undefined,
588-
);
589586

590587
const inputRef = useRef<HTMLTextAreaElement>(null);
591588
const [userInput, setUserInput] = useState("");
@@ -1334,9 +1331,11 @@ function _Chat() {
13341331
</div>
13351332
</>
13361333
)}
1337-
{isContext
1338-
? Locale.Chat.IsContext
1339-
: message.date.toLocaleString()}
1334+
<div>
1335+
{isContext
1336+
? Locale.Chat.IsContext
1337+
: message.date.toLocaleString()}
1338+
</div>
13401339
</div>
13411340
</div>
13421341
</div>

0 commit comments

Comments
 (0)