From 9e80ed0fa8008d3750583133e7520dc33fc9cb48 Mon Sep 17 00:00:00 2001 From: shaw Date: Sat, 7 Feb 2026 11:09:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=A0=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将筛选器和操作按钮合并到同一行显示 - 筛选器在左侧,操作按钮在右侧 - 添加响应式支持,窄屏时自动换行并简化按钮文字 --- frontend/src/i18n/locales/en.ts | 2 + frontend/src/i18n/locales/zh.ts | 2 + frontend/src/style.css | 4 + frontend/src/views/admin/ProxiesView.vue | 94 ++++++++++++------------ 4 files changed, 56 insertions(+), 46 deletions(-) diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 990e2ff7..34b58458 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1913,6 +1913,8 @@ export default { editProxy: 'Edit Proxy', deleteProxy: 'Delete Proxy', dataImport: 'Import', + dataImportShort: 'Import', + dataExportShort: 'Export', dataExportSelected: 'Export Selected', dataImportTitle: 'Import Proxies', dataImportHint: 'Upload the exported proxy JSON file to import proxies in bulk.', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 9eba883a..85f76b3b 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -2022,6 +2022,8 @@ export default { deleteConfirmMessage: "确定要删除代理 '{name}' 吗?", testProxy: '测试代理', dataImport: '导入', + dataImportShort: '导入', + dataExportShort: '导出', dataExportSelected: '导出选中', dataImportTitle: '导入代理', dataImportHint: '上传代理导出的 JSON 文件以批量导入代理。', diff --git a/frontend/src/style.css b/frontend/src/style.css index 16494f35..c1ee8ea5 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -114,6 +114,10 @@ @apply rounded-lg px-3 py-1.5 text-xs; } + .btn-md { + @apply rounded-xl px-4 py-2 text-sm; + } + .btn-lg { @apply rounded-2xl px-6 py-3 text-base; } diff --git a/frontend/src/views/admin/ProxiesView.vue b/frontend/src/views/admin/ProxiesView.vue index 2ae76ba4..bf1adf07 100644 --- a/frontend/src/views/admin/ProxiesView.vue +++ b/frontend/src/views/admin/ProxiesView.vue @@ -2,50 +2,10 @@