fix: 缩小后台用户等级图标
This commit is contained in:
@@ -1,13 +1,34 @@
|
||||
body.users-php .wp-list-table.users .column-aksrt_user_level .aksrt-user-level-icon--admin {
|
||||
display: inline-block;
|
||||
width: auto !important;
|
||||
height: 14px !important;
|
||||
max-width: 32px !important;
|
||||
max-height: 14px !important;
|
||||
height: 16px !important;
|
||||
max-width: 36px !important;
|
||||
max-height: 16px !important;
|
||||
object-fit: contain;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
body.users-php .aksrt-user-level-admin-cell {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
body.users-php .aksrt-user-level-admin-cell__level {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
body.users-php .aksrt-user-level-admin-cell__exp {
|
||||
display: block;
|
||||
padding-left: 22px;
|
||||
color: #646970;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#your-profile .aksrt-user-level-icon--admin,
|
||||
#profile-page .aksrt-user-level-icon--admin {
|
||||
display: inline-block;
|
||||
|
||||
@@ -71,9 +71,11 @@ class LevelAdmin {
|
||||
}
|
||||
$level = Level::get_level($user_id);
|
||||
$icon = Level::get_badge_html($user_id, 'aksrt-user-level-icon--admin');
|
||||
return '<span style="display:inline-flex;align-items:center;gap:6px;">' . $icon
|
||||
. '<strong>' . esc_html(Level::get_level_name($level)) . '</strong>'
|
||||
. '<small>(' . esc_html((string) Level::get_integral($user_id)) . ' EXP)</small></span>';
|
||||
return '<span class="aksrt-user-level-admin-cell">'
|
||||
. '<span class="aksrt-user-level-admin-cell__level">' . $icon
|
||||
. '<strong>' . esc_html(Level::get_level_name($level)) . '</strong></span>'
|
||||
. '<small class="aksrt-user-level-admin-cell__exp">' . esc_html((string) Level::get_integral($user_id)) . ' EXP</small>'
|
||||
. '</span>';
|
||||
}
|
||||
|
||||
public function sortable_columns(array $columns): array {
|
||||
|
||||
Reference in New Issue
Block a user