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:
+3
-1
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user