feat: added size attribute to preview and download buttons

This commit is contained in:
kangfenmao 2024-11-20 11:57:57 +08:00
parent e1494d408f
commit c3d007b52c

View File

@ -32,10 +32,10 @@ const Artifacts: FC<Props> = ({ html }) => {
return (
<Container>
<Button type="primary" icon={<ExpandOutlined />} onClick={onPreview}>
<Button type="primary" icon={<ExpandOutlined />} onClick={onPreview} size="small">
{t('chat.artifacts.button.preview')}
</Button>
<Button icon={<DownloadOutlined />} onClick={onDownload}>
<Button icon={<DownloadOutlined />} onClick={onDownload} size="small">
{t('chat.artifacts.button.download')}
</Button>
</Container>