fix(dashboard): keep chat Latest button centered while pressed
The jump-to-latest button is centered via transform: translateX(-50%), and the global .btn:active scale transform replaced it wholesale on mousedown, shifting the button out from under the cursor mid-click. Compose both transforms on :active (same fix as the DevServer new-logs button). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
7
.changeset/chat-jump-to-latest-active-transform.md
Normal file
7
.changeset/chat-jump-to-latest-active-transform.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
summary: Fix the Chat View "Latest" button shifting sideways out from under the cursor when clicked.
|
||||||
|
category: fix
|
||||||
|
dev: `.chat-jump-to-latest:active` now composes `translateX(-50%) scale(0.97)` so the global `.btn:active` transform no longer replaces the centering transform.
|
||||||
@@ -1043,6 +1043,14 @@ The thread-wide Markdown/plain render toggle (`.chat-thread-header-render-toggle
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
FNXC:ChatView 2026-07-22-00:00:
|
||||||
|
The Latest button is centered with transform: translateX(-50%), so the global .btn:active { transform: scale(0.97) } rule must not replace that transform wholesale — doing so shifted the button half its width sideways on mousedown, out from under the cursor mid-click. Compose both transforms on :active instead (same fix as .devserver-log-viewer__new-logs-button).
|
||||||
|
*/
|
||||||
|
.chat-jump-to-latest:active {
|
||||||
|
transform: translateX(-50%) scale(0.97);
|
||||||
|
}
|
||||||
|
|
||||||
.chat-message--user {
|
.chat-message--user {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
|
|||||||
Reference in New Issue
Block a user