fix: adjust scroll button positioning in ChatInterface

- Updated the positioning of the scroll-to-bottom button in the ChatInterface component to improve visibility and accessibility.
- Changed the bottom offset from 44 to 48 and adjusted the vertical translation for better alignment.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-10-18 21:51:42 +08:00
parent 62e1470014
commit 06321af9e8
@@ -365,7 +365,9 @@ const ChatInterfaceContent = ({ centerInputOnEmpty }: ChatInterfaceProps) => {
</div>
{shouldShowScrollToBottom && (
<div className={clsx("absolute right-1/2 z-40 translate-x-1/2", "bottom-44")}>
<div
className={clsx("absolute right-1/2 z-40 translate-x-1/2", "bottom-48 -translate-y-2")}
>
<button
type="button"
onClick={() => resetScrollState()}