refactor: 将滚动到底部按钮从右侧移至居中 【无需审核】#433
Merged
ErlichLiu merged 1 commit intoMay 13, 2026
Merged
Conversation
将 ConversationScrollButton 的定位从 right-[55px] 改为 left-1/2 -translate-x-1/2, 使按钮始终水平居中于输入框上方,无论窗口大小如何变化。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
将
ConversationScrollButton(一键滚动到底部按钮)的定位从右侧改为水平居中,使其始终保持在输入框上方居中位置。Changes
apps/electron/src/renderer/components/ai-elements/conversation.tsx— 将按钮定位从right-[55px]改为left-1/2 -translate-x-1/2,实现水平居中。无论 Conversation 容器宽度如何变化(窗口缩放、侧边栏开关等),按钮始终保持居中。How to Test
Notes
ConversationScrollButton组件)🤖 Generated with Claude Code