fix: 缩小后台用户等级图标

This commit is contained in:
2026-08-17 12:18:44 +08:00
parent 72527fd88b
commit 0097875dc9
2 changed files with 7 additions and 5 deletions
+5 -4
View File
@@ -1,8 +1,9 @@
#users .aksrt-user-level-icon--admin { body.users-php .wp-list-table.users .column-aksrt_user_level .aksrt-user-level-icon--admin {
display: inline-block; display: inline-block;
width: auto; width: auto !important;
height: 14px; height: 14px !important;
max-width: 32px; max-width: 32px !important;
max-height: 14px !important;
object-fit: contain; object-fit: contain;
vertical-align: middle; vertical-align: middle;
} }
+2 -1
View File
@@ -45,11 +45,12 @@ class LevelAdmin {
if (!in_array($hook, ['users.php', 'user-edit.php', 'profile.php'], true)) { if (!in_array($hook, ['users.php', 'user-edit.php', 'profile.php'], true)) {
return; return;
} }
$style_path = get_theme_file_path('/assets/css/admin/user-level.css');
wp_enqueue_style( wp_enqueue_style(
'aksrt-user-level-admin', 'aksrt-user-level-admin',
get_theme_file_uri('/assets/css/admin/user-level.css'), get_theme_file_uri('/assets/css/admin/user-level.css'),
[], [],
defined('AKSRT_VERSION') ? AKSRT_VERSION : null file_exists($style_path) ? (string) filemtime($style_path) : (defined('AKSRT_VERSION') ? AKSRT_VERSION : null)
); );
} }