Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/x/components/sender/style/slot-textarea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const genSlotTextAreaStyle: GenerateStyle<SenderToken> = (token) => {
justifyContent: 'center',
},
[slotTagCls]: {
display: 'inline-flex',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

在使用 display: 'inline-flex' 且设置了 height: '100%' 的标签组件时,建议同时添加 alignItems: 'center'。这可以确保标签内部的内容(如文本或图标)在垂直方向上居中对齐,避免内容在高度填满时出现偏移,从而保持与组件库中其他标签类元素(如 skill-tag)的样式一致性。

Suggested change
display: 'inline-flex',
display: 'inline-flex',
alignItems: 'center',

background: token.colorBgSlot,
border: `1px solid ${token.colorBorderSlot}`,
outline: 'none',
Expand Down