fix: 缩小后台用户等级图标
This commit is contained in:
@@ -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;
|
||||
width: auto;
|
||||
height: 14px;
|
||||
max-width: 32px;
|
||||
width: auto !important;
|
||||
height: 14px !important;
|
||||
max-width: 32px !important;
|
||||
max-height: 14px !important;
|
||||
object-fit: contain;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
@@ -45,11 +45,12 @@ class LevelAdmin {
|
||||
if (!in_array($hook, ['users.php', 'user-edit.php', 'profile.php'], true)) {
|
||||
return;
|
||||
}
|
||||
$style_path = get_theme_file_path('/assets/css/admin/user-level.css');
|
||||
wp_enqueue_style(
|
||||
'aksrt-user-level-admin',
|
||||
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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user