Skip to content

Commit

Permalink
unified button size
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 11, 2024
1 parent 61847d9 commit eab55bc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/components/base/base-password-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const BasePasswordModal: React.FC<Props> = (props) => {
<Input fullWidth type="password" value={password} onValueChange={setPassword} />
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onCancel}>
<Button size="sm" variant="light" onPress={onCancel}>
取消
</Button>
<Button color="primary" onPress={() => onConfirm(password)}>
<Button size="sm" color="primary" onPress={() => onConfirm(password)}>
确认
</Button>
</ModalFooter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ConnectionDetailModal: React.FC<Props> = (props) => {
)}
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
关闭
</Button>
</ModalFooter>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/mihomo/interface-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const InterfaceModal: React.FC<Props> = (props) => {
})}
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
关闭
</Button>
</ModalFooter>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/components/override/edit-info-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ const EditInfoModal: React.FC<Props> = (props) => {
</SettingItem>
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
取消
</Button>
<Button color="primary" onPress={onSave}>
<Button size="sm" color="primary" onPress={onSave}>
保存
</Button>
</ModalFooter>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/override/exec-log-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ExecLogModal: React.FC<Props> = (props) => {
})}
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
关闭
</Button>
</ModalFooter>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/components/profiles/edit-info-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ const EditInfoModal: React.FC<Props> = (props) => {
</SettingItem>
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
取消
</Button>
<Button color="primary" onPress={onSave}>
<Button size="sm" color="primary" onPress={onSave}>
保存
</Button>
</ModalFooter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const WebdavRestoreModal: React.FC<Props> = (props) => {
)}
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
关闭
</Button>
</ModalFooter>
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/src/components/updater/updater-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ const UpdaterModal: React.FC<Props> = (props) => {
</ReactMarkdown>
</ModalBody>
<ModalFooter>
<Button variant="light" onPress={onClose}>
<Button size="sm" variant="light" onPress={onClose}>
取消
</Button>
<Button
size="sm"
color="primary"
isLoading={downloading}
onPress={async () => {
Expand Down

0 comments on commit eab55bc

Please sign in to comment.