fix(nav): align VIP hover card titles
The shared VIP image style is block-level, so the hover-card title now uses explicit icon and label flex items to keep both vertically centered on one row. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
122b0492a3
commit
42a60d14d5
2 files changed
+18
-3
No files matched your search
@@ -591,13 +591,28 @@ body.theme-dark body > .drop-newadd .newadd-btns__item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sub-vip-card .vip-name {
|
.sub-vip-card .vip-name {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-vip-card .vip-name .mr6 {
|
.sub-vip-card .vip-name__icon {
|
||||||
margin-right: 6px;
|
display: flex;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-vip-card .vip-name__icon .aksrt-vip-level-icon {
|
||||||
|
display: block;
|
||||||
|
height: 1.1em;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-vip-card .vip-name__label {
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-vip-card .v-equity,
|
.sub-vip-card .v-equity,
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ trait VipServiceModal {
|
|||||||
$html .= '<div class="vip-baicon" aria-hidden="true">' . $icon . '</div>';
|
$html .= '<div class="vip-baicon" aria-hidden="true">' . $icon . '</div>';
|
||||||
$html .= '<div class="vip-img abs-right">' . $icon . '</div>';
|
$html .= '<div class="vip-img abs-right">' . $icon . '</div>';
|
||||||
$html .= '<div class="relative">';
|
$html .= '<div class="relative">';
|
||||||
$html .= '<div class="vip-name mb10"><span class="mr6">' . $icon . '</span>' . esc_html($name) . '</div>';
|
$html .= '<div class="vip-name mb10"><span class="vip-name__icon">' . $icon . '</span><span class="vip-name__label">' . esc_html($name) . '</span></div>';
|
||||||
if ($desc !== '') {
|
if ($desc !== '') {
|
||||||
$html .= '<div class="mb6 font-bold em09">' . esc_html($desc) . '</div>';
|
$html .= '<div class="mb6 font-bold em09">' . esc_html($desc) . '</div>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user