Skip to content

Commit 4c6b6a8

Browse files
committed
chat: space at bottom
1 parent b187d34 commit 4c6b6a8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/packages/frontend/chat/chat-log.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ export function MessageList({
547547
return (
548548
<Virtuoso
549549
ref={virtuosoRef}
550-
totalCount={sortedDates.length}
550+
totalCount={sortedDates.length + 1}
551551
itemSize={(el) => {
552552
// see comment in jupyter/cell-list.tsx
553553
const h = el.getBoundingClientRect().height;
@@ -559,6 +559,9 @@ export function MessageList({
559559
return h;
560560
}}
561561
itemContent={(index) => {
562+
if (sortedDates.length == index) {
563+
return <div style={{ height: "25vh" }} />;
564+
}
562565
const date = sortedDates[index];
563566
const message: ChatMessageTyped | undefined = messages.get(date);
564567
if (message == null) {

src/packages/frontend/chat/chatroom.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ export function ChatPanel({
437437
});
438438

439439
const renderThreadRow = (thread: ThreadMeta) => {
440-
const { key, displayLabel, hasCustomName, unreadCount } = thread;
440+
const { key, displayLabel, hasCustomName, unreadCount, isAI } = thread;
441441
const plainLabel = stripHtml(displayLabel);
442442
const isHovered = hoveredThread === key;
443443
const showMenu = isHovered || selectedThreadKey === key;
@@ -456,6 +456,7 @@ export function ChatPanel({
456456
setHoveredThread((prev) => (prev === key ? null : prev))
457457
}
458458
>
459+
<Icon name={isAI ? "robot" : "users"} style={{ color: "#888" }} />
459460
<div style={THREAD_ITEM_LABEL_STYLE}>{plainLabel}</div>
460461
{unreadCount > 0 && (
461462
<Badge

0 commit comments

Comments
 (0)