mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-21 22:50:06 +08:00
refactor: 优化网络显示卡片按钮样式和行为,调整按钮属性以提升用户体验
This commit is contained in:
parent
5a2939f4ec
commit
8eacaa294f
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -9,4 +9,9 @@
|
|||||||
"css.customData": [
|
"css.customData": [
|
||||||
".vscode/tailwindcss.json"
|
".vscode/tailwindcss.json"
|
||||||
],
|
],
|
||||||
}
|
"editor.formatOnPaste": false,
|
||||||
|
"editor.formatOnSave": false,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": "never"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|||||||
@ -62,24 +62,39 @@ const NetworkDisplayCard = <T extends keyof NetworkType>({
|
|||||||
<ButtonGroup
|
<ButtonGroup
|
||||||
fullWidth
|
fullWidth
|
||||||
isDisabled={editing}
|
isDisabled={editing}
|
||||||
radius="full"
|
radius="sm"
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="shadow"
|
variant="flat"
|
||||||
>
|
>
|
||||||
<Button color="warning" startContent={<FiEdit3 />} onPress={onEdit}>
|
<Button
|
||||||
|
color="warning"
|
||||||
|
startContent={<FiEdit3 size={16} />}
|
||||||
|
onPress={onEdit}
|
||||||
|
>
|
||||||
编辑
|
编辑
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
color={debug ? 'success' : 'default'}
|
color={debug ? 'secondary' : 'success'}
|
||||||
startContent={<CgDebug />}
|
variant="flat"
|
||||||
|
startContent={
|
||||||
|
<CgDebug
|
||||||
|
style={{
|
||||||
|
width: '16px',
|
||||||
|
height: '16px',
|
||||||
|
minWidth: '16px',
|
||||||
|
minHeight: '16px'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
onPress={handleEnableDebug}
|
onPress={handleEnableDebug}
|
||||||
>
|
>
|
||||||
{debug ? '关闭调试' : '开启调试'}
|
{debug ? '关闭调试' : '开启调试'}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
color="primary"
|
className="bg-danger/20 text-danger hover:bg-danger/30 transition-colors"
|
||||||
startContent={<MdDeleteForever />}
|
variant="flat"
|
||||||
|
startContent={<MdDeleteForever size={16} />}
|
||||||
onPress={handleDelete}
|
onPress={handleDelete}
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user