Skip to content

Commit

Permalink
style: centered positioning and alignment added to modal and userpopu…
Browse files Browse the repository at this point in the history
…p components

- Added centered positioning to Modal component in PromptPopup.
- Added centered alignment to UserPopup component.
  • Loading branch information
kangfenmao committed Sep 21, 2024
1 parent eb79987 commit ef40e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/components/Popups/PromptPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/src/components/Popups/UserPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={() => {}}
Expand Down

0 comments on commit ef40e9d

Please sign in to comment.