feat(FN-4610): complete Step 1 — add latest button to rooms thread
Fusion-Task-Id: FN-4610 Fusion-Task-Lineage: 6f2a411d-817d-45e5-bc8f-40ea38920401
This commit is contained in:
@@ -2571,6 +2571,17 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
|
||||
)}
|
||||
<div ref={messagesEndRef} />
|
||||
</div>
|
||||
{rooms.activeRoom && isUserScrolling && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-sm chat-jump-to-latest"
|
||||
data-testid="chat-jump-to-latest"
|
||||
onClick={scrollToBottom}
|
||||
>
|
||||
<ChevronDown size={14} />
|
||||
Latest
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<div className="chat-room-empty-pane" data-testid="chat-rooms-empty-pane">Select a room or create one</div>
|
||||
|
||||
Reference in New Issue
Block a user