fix(SelectionAssistant): make add custom action button bigger (#7185)

fix: make add custom action button bigger
This commit is contained in:
fullex 2025-06-14 11:43:13 +08:00 committed by GitHub
parent 8fa898a2bf
commit 9911196bde
6 changed files with 14 additions and 2 deletions

View File

@ -1962,6 +1962,7 @@
},
"actions": {
"title": "Actions",
"custom": "Custom Action",
"reset": {
"button": "Reset",
"tooltip": "Reset to default actions. Custom actions will not be deleted.",

View File

@ -1962,6 +1962,7 @@
},
"actions": {
"title": "機能設定",
"custom": "カスタム機能",
"reset": {
"button": "リセット",
"tooltip": "デフォルト機能にリセット(カスタム機能は保持)",

View File

@ -1962,6 +1962,7 @@
},
"actions": {
"title": "Действия",
"custom": "Пользовательское действие",
"reset": {
"button": "Сбросить",
"tooltip": "Сбросить стандартные действия. Пользовательские останутся.",

View File

@ -1927,7 +1927,7 @@
"selected": "划词",
"selected_note": "划词后立即显示工具栏",
"ctrlkey": "Ctrl 键",
"ctrlkey_note": "划词后,再 Ctrl键才显示工具栏",
"ctrlkey_note": "划词后,再 按 Ctrl键才显示工具栏",
"shortcut": "快捷键",
"shortcut_note": "划词后,使用快捷键显示工具栏。请在快捷键设置页面中设置取词快捷键并启用。",
"shortcut_link": "前往快捷键设置"
@ -1962,6 +1962,7 @@
},
"actions": {
"title": "功能",
"custom": "自定义功能",
"reset": {
"button": "重置",
"tooltip": "重置为默认功能,自定义功能不会被删除",

View File

@ -1962,6 +1962,7 @@
},
"actions": {
"title": "功能",
"custom": "自訂功能",
"reset": {
"button": "重設",
"tooltip": "重設為預設功能,自訂功能不會被刪除",

View File

@ -32,7 +32,14 @@ const SettingsActionsListHeader = memo(({ customItemsCount, maxCustomItems, onRe
? t('selection.settings.actions.add_tooltip.disabled', { max: maxCustomItems })
: t('selection.settings.actions.add_tooltip.enabled')
}>
<Button type="primary" icon={<Plus size={16} />} onClick={onAdd} disabled={isCustomItemLimitReached} />
<Button
type="primary"
icon={<Plus size={16} />}
onClick={onAdd}
disabled={isCustomItemLimitReached}
style={{ paddingInline: '8px' }}>
{t('selection.settings.actions.custom')}
</Button>
</Tooltip>
</Row>
)