Skip to content

Commit

Permalink
fix(chat): add compensatory style to make button's text align center
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung committed Mar 5, 2025
1 parent 1a7f737 commit 8fc2dd7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/chat/button/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ $primaryGradientHover: #08C4FF 0%, #4892FF 50%, #8A61FF 100%;
background-image: linear-gradient(110deg, $primaryGradient);
background-clip: text;
color: transparent;
padding: 2px 0;
}
svg,
path {
Expand Down
15 changes: 15 additions & 0 deletions src/chat/demos/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ export default function () {
>
发送
</Chat.Button>
<Chat.Button
type="secondary"
disabled={disabled}
icon={<Chat.Icon.SendIcon style={{ fontSize: 16 }} />}
>
AI log parsing
</Chat.Button>
</Space>
</Col>
<Col span={24}>
Expand Down Expand Up @@ -73,6 +80,14 @@ export default function () {
>
发送
</Chat.Button>
<Chat.Button
size="small"
type="secondary"
disabled={disabled}
icon={<Chat.Icon.SendIcon style={{ fontSize: 16 }} />}
>
AI log parsing
</Chat.Button>
</Space>
</Col>
<Col span={24}>
Expand Down

0 comments on commit 8fc2dd7

Please sign in to comment.