fix(sidebar): 工作中 Tab 上下间距对称,与新会话间距一致【无需审核】#711
Open
Andreaseszhang wants to merge 1 commit into
Open
Conversation
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.
概述
Agent 模式侧边栏中,「工作中 / 置顶」Tab 切换行的上下间距不对称:上方(到「新会话」按钮)有 8px,下方(到 Tab 内容列表)只有 4px,视觉上略显拥挤、不平衡。本 PR 将下方间距补齐到 8px,使 Tab 行上下留白对称、与「新会话」到「工作中」之间的间距保持一致。
改动
apps/electron/src/renderer/components/app-shell/LeftSidebar.tsx— 将 Tab 切换按钮行的下外边距从mb-0.5(2px)调整为mb-1.5(6px)。叠加 Tab 内容区原有的pt-0.5(2px),下方总间距变为 8px,与上方 Tab 容器的pt-2(8px)对称。测试方法
bun run dev启动应用备注