fix(Comment): align action content vertically - #4354
Draft
RSS1102 wants to merge 1 commit into
Draft
Conversation
RSS1102
requested review from
HaixingOoO,
NWYLZW,
RylanBot,
ZWkang,
carolin913,
honkinglin and
uyarn
as code owners
August 11, 2026 23:48
Contributor
|
Size Change: 0 B Total Size: 87.8 kB ℹ️ View Unchanged
|
Collaborator
TDesign Component Site Preview Open
|
commit: |
This was referenced Aug 11, 2026
Contributor
|
Size Change: 0 B Total Size: 926 kB ℹ️ View Unchanged
|
RSS1102
marked this pull request as draft
August 12, 2026 07:30
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.

🤔 这个 PR 的性质是?
🔗 相关 Issue
暂无对应 Issue。
💡 需求背景和解决方案
Comment 操作项中的图标与数字/文字此前没有在按钮文本容器内按交叉轴居中,React 组件页会出现视觉重心偏移。
本 PR 将
packages/common更新到 Tencent/tdesign-common#2668 的 commit,由公共 Comment 样式为.t-button__text增加align-items: center。不修改 React Comment API、DOM 或业务逻辑。视觉对比:修复前拇指/评论图标与“6”“回复”存在上下偏移;修复后图标与文字在按钮内垂直居中,并与 Vue Next 的目标效果保持一致。
验证:
pnpm exec vitest run packages/components/comment/__tests__/comment.test.tsx:8/8 通过git diff --check:通过📝 更新日志
tdesign-react
@tdesign-react/chat
☑️ 请求合并前的自查清单