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;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user