From f7f1c30557e3139fffec44d0e5342b64182795fc Mon Sep 17 00:00:00 2001
From: MIST <52695829+MISTLXC@users.noreply.github.com>
Date: Thu, 25 Jun 2026 09:44:43 +0800
Subject: [PATCH] feat(chat): floating back-to-bottom button with End-key
shortcut
Add a floating back-to-bottom control to the chat message list that
appears when the user scrolls up away from the live bottom. The button
auto-docks to the right edge after 15s of inactivity (with a subtle
breathing pulse) and un-docks on mouseenter, keeping it unobtrusive
while reading history.
- End key jumps to the bottom, ignored when focus is in an input,
textarea, or contentEditable field.
- Explicit jump (button click or End) forces past the stick-to-bottom
escape lock and clears it so sticky auto-scroll resumes following new
content; automatic scrolls still respect the escape lock so they do
not fight the user reading history.
- Larger thumb-reach hit area and lower placement on mobile.
- New i18n key chat.scrollToBottom (zh-CN / en-US).
---
.../src/components/chat/MessageList.vue | 182 +++++++++++++++++-
mateclaw-ui/src/i18n/locales/en-US.ts | 1 +
mateclaw-ui/src/i18n/locales/zh-CN.ts | 1 +
3 files changed, 179 insertions(+), 5 deletions(-)
diff --git a/mateclaw-ui/src/components/chat/MessageList.vue b/mateclaw-ui/src/components/chat/MessageList.vue
index 06fad2ae..b030b61a 100644
--- a/mateclaw-ui/src/components/chat/MessageList.vue
+++ b/mateclaw-ui/src/components/chat/MessageList.vue
@@ -88,13 +88,33 @@
+
+
+
+
+