style: modal style gap

This commit is contained in:
jialin
2024-08-16 12:03:48 +08:00
parent 1d92571d09
commit 7ff21e0d68
12 changed files with 58 additions and 21 deletions
+12 -7
View File
@@ -93,7 +93,9 @@ const AddModal: React.FC<AddModalProps> = ({
return (
<Modal
title={title}
title={
!showKey ? title : intl.formatMessage({ id: 'apikeys.title.save' })
}
open={open}
centered={true}
onOk={handleSumit}
@@ -180,13 +182,15 @@ const AddModal: React.FC<AddModalProps> = ({
</Form.Item>
</>
) : (
<Form.Item
extra={
<Tag color="error" style={{ padding: '6px 8px', marginTop: 10 }}>
<Form.Item>
<div>
<Tag
color="error"
style={{ padding: '6px 8px', marginBottom: 16 }}
>
{intl.formatMessage({ id: 'apikeys.table.save.tips' })}
</Tag>
}
>
</div>
<SealInput.Input
label={intl.formatMessage({ id: 'apikeys.form.apikey' })}
value={apikeyValue}
@@ -194,7 +198,8 @@ const AddModal: React.FC<AddModalProps> = ({
<CopyButton
text={apikeyValue}
shape="default"
size="small"
size="middle"
type="text"
></CopyButton>
}
></SealInput.Input>