From f2f3bad9efa47083341fa1a6f354d8469e80f13c Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Mon, 9 Jun 2025 18:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20refactor:=20reorganize=20log=20t?= =?UTF-8?q?ype=20selector=20layout=20with=20responsive=20design?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move Form.Select (log type selector) from grid layout to action button row - Position log type selector on the left side of the action button area - Keep action buttons (Query, Reset, Column Settings) aligned to the right - Implement responsive design with sm: breakpoint (640px) - Mobile: vertical stacking with full-width elements - Desktop: horizontal layout with proper spacing - Add min-width constraint (140px) for log type selector - Remove extra padding-top from button area for cleaner spacing - Maintain accessibility and usability across all screen sizes This change improves the UI layout by better utilizing horizontal space and providing a more intuitive grouping of form controls and actions. --- web/src/components/table/LogsTable.js | 51 ++++++++++++----------- web/src/components/table/MjLogsTable.js | 2 +- web/src/components/table/TaskLogsTable.js | 2 +- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/web/src/components/table/LogsTable.js b/web/src/components/table/LogsTable.js index b234f098..65af55b3 100644 --- a/web/src/components/table/LogsTable.js +++ b/web/src/components/table/LogsTable.js @@ -1241,28 +1241,6 @@ const LogsTable = () => { /> - {/* 日志类型选择器 */} - { - // 延迟执行搜索,让表单值先更新 - setTimeout(() => { - refresh(); - }, 0); - }} - > - {t('全部')} - {t('充值')} - {t('消费')} - {t('管理')} - {t('系统')} - {t('错误')} - - {/* 其他搜索字段 */} { {/* 操作按钮区域 */} -
-
-
+
+ {/* 日志类型选择器 */} +
+ { + // 延迟执行搜索,让表单值先更新 + setTimeout(() => { + refresh(); + }, 0); + }} + > + {t('全部')} + {t('充值')} + {t('消费')} + {t('管理')} + {t('系统')} + {t('错误')} + +
+ +
{/* 操作按钮区域 */} -
+
{/* 操作按钮区域 */} -
+