From 1273a0138eacf87f05961de6cc79b98d8b151e22 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 31 Oct 2026 19:13:09 +0800 Subject: [PATCH] fix(admin): match bulk action select and apply button sizes - Add shared .aksrt-native-bulk row that locks select and button to the same height, font size and line height - Apply it to the charge cards and invite codes bulk action rows Co-Authored-By: Claude Fable 5 --- assets/css/admin/native-ui.css | 16 ++++++++++++++++ src/Admin/Native/PayChargeCardsList.php | 2 +- src/Admin/Native/UsersMenusInviteCode.php | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/assets/css/admin/native-ui.css b/assets/css/admin/native-ui.css index a9788f1a..cd69c9ef 100644 --- a/assets/css/admin/native-ui.css +++ b/assets/css/admin/native-ui.css @@ -365,6 +365,22 @@ a.aksrt-native-stat:focus { outline: 2px solid color-mix(in srgb, var(--an-tone) .aksrt-native .button .dashicons { width: 16px; height: 16px; margin: 0 4px 0 -2px; font-size: 16px; line-height: inherit; vertical-align: -1px; } .aksrt-native .submit { margin: 0; padding: 0; } +/* 批量操作行:下拉与「应用」按钮锁定同一高度与字号。 + WP 核心给 select 14px/line-height:2、给 .button 13px,且 782px 以下再把两者各自放大, + 只设 min-height 时两者会因字号、行高和基线对齐不同而错位,这里显式给定。 */ +.aksrt-native-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } +.aksrt-native-bulk select, +.aksrt-native-bulk .button { + box-sizing: border-box; + height: 32px; + min-height: 32px; + margin: 0; + font-size: 13px; + line-height: 30px; + vertical-align: middle; +} +.aksrt-native-bulk select { width: auto; max-width: 12.5rem; } + /* ---------- 表格 ---------- */ .aksrt-native-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .aksrt-native .widefat, diff --git a/src/Admin/Native/PayChargeCardsList.php b/src/Admin/Native/PayChargeCardsList.php index 80fc0903..b0afbbb6 100644 --- a/src/Admin/Native/PayChargeCardsList.php +++ b/src/Admin/Native/PayChargeCardsList.php @@ -187,7 +187,7 @@ trait PayChargeCardsList { echo '
'; wp_nonce_field(self::NONCE); - echo '
+ echo '
'; - echo '
' + echo '
' . '' . '' . '
';