unified button size

This commit is contained in:
pompurin404 2024-10-11 12:22:01 +08:00
parent 61847d94f5
commit eab55bc7dd
No known key found for this signature in database
8 changed files with 12 additions and 11 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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 () => {