style: centered positioning and alignment added to modal and userpopup components

- Added centered positioning to Modal component in PromptPopup.
- Added centered alignment to UserPopup component.
This commit is contained in:
kangfenmao 2024-09-22 00:19:45 +08:00
parent eb799879ff
commit ef40e9db5f
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const PromptPopupContainer: React.FC<Props> = ({
}
return (
<Modal title={title} open={open} onOk={onOk} onCancel={handleCancel} afterClose={onClose}>
<Modal title={title} open={open} onOk={onOk} onCancel={handleCancel} afterClose={onClose} centered>
<Box mb={8}>{message}</Box>
<Input
placeholder={inputPlaceholder}

View File

@ -44,7 +44,8 @@ const PopupContainer: React.FC<Props> = ({ resolve }) => {
onOk={onOk}
onCancel={onCancel}
afterClose={onClose}
transitionName="ant-move-down">
transitionName="ant-move-down"
centered>
<Center mt="30px">
<Upload
customRequest={() => {}}