From 9911196bde8aff2f6e37745b28af60d96017bfee Mon Sep 17 00:00:00 2001
From: fullex <106392080+0xfullex@users.noreply.github.com>
Date: Sat, 14 Jun 2025 11:43:13 +0800
Subject: [PATCH] fix(SelectionAssistant): make add custom action button bigger
(#7185)
fix: make add custom action button bigger
---
src/renderer/src/i18n/locales/en-us.json | 1 +
src/renderer/src/i18n/locales/ja-jp.json | 1 +
src/renderer/src/i18n/locales/ru-ru.json | 1 +
src/renderer/src/i18n/locales/zh-cn.json | 3 ++-
src/renderer/src/i18n/locales/zh-tw.json | 1 +
.../components/SettingsActionsListHeader.tsx | 9 ++++++++-
6 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json
index a7201ec1cb..2ac02dce93 100644
--- a/src/renderer/src/i18n/locales/en-us.json
+++ b/src/renderer/src/i18n/locales/en-us.json
@@ -1962,6 +1962,7 @@
},
"actions": {
"title": "Actions",
+ "custom": "Custom Action",
"reset": {
"button": "Reset",
"tooltip": "Reset to default actions. Custom actions will not be deleted.",
diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json
index 7425bb6428..45acc4c188 100644
--- a/src/renderer/src/i18n/locales/ja-jp.json
+++ b/src/renderer/src/i18n/locales/ja-jp.json
@@ -1962,6 +1962,7 @@
},
"actions": {
"title": "機能設定",
+ "custom": "カスタム機能",
"reset": {
"button": "リセット",
"tooltip": "デフォルト機能にリセット(カスタム機能は保持)",
diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json
index c51e1b9fad..c2f3a90c9a 100644
--- a/src/renderer/src/i18n/locales/ru-ru.json
+++ b/src/renderer/src/i18n/locales/ru-ru.json
@@ -1962,6 +1962,7 @@
},
"actions": {
"title": "Действия",
+ "custom": "Пользовательское действие",
"reset": {
"button": "Сбросить",
"tooltip": "Сбросить стандартные действия. Пользовательские останутся.",
diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json
index f2cee104a4..cd17d37bbe 100644
--- a/src/renderer/src/i18n/locales/zh-cn.json
+++ b/src/renderer/src/i18n/locales/zh-cn.json
@@ -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": "重置为默认功能,自定义功能不会被删除",
diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json
index 1a6d1371e5..f1504dd503 100644
--- a/src/renderer/src/i18n/locales/zh-tw.json
+++ b/src/renderer/src/i18n/locales/zh-tw.json
@@ -1962,6 +1962,7 @@
},
"actions": {
"title": "功能",
+ "custom": "自訂功能",
"reset": {
"button": "重設",
"tooltip": "重設為預設功能,自訂功能不會被刪除",
diff --git a/src/renderer/src/pages/settings/SelectionAssistantSettings/components/SettingsActionsListHeader.tsx b/src/renderer/src/pages/settings/SelectionAssistantSettings/components/SettingsActionsListHeader.tsx
index 69017b36df..01d721baf9 100644
--- a/src/renderer/src/pages/settings/SelectionAssistantSettings/components/SettingsActionsListHeader.tsx
+++ b/src/renderer/src/pages/settings/SelectionAssistantSettings/components/SettingsActionsListHeader.tsx
@@ -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')
}>
- } onClick={onAdd} disabled={isCustomItemLimitReached} />
+ }
+ onClick={onAdd}
+ disabled={isCustomItemLimitReached}
+ style={{ paddingInline: '8px' }}>
+ {t('selection.settings.actions.custom')}
+
)