在 user-home.css 里给Tab加上指示条居中

This commit is contained in:
2026-08-23 12:32:39 +08:00
parent a06d36ac7b
commit c9c1789aba
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -370,7 +370,8 @@
content: '';
position: absolute;
bottom: 5px;
left: 0;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 2px;
background: var(--theme-color, var(--color-primary, #f04494));
+4 -4
View File
@@ -60,10 +60,10 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
}
$tab_count = (int) ($tab_counts[$tab_key] ?? 0);
?>
<button type="button" class="<?php echo esc_attr(trim($tab_class)); ?>" data-tab="<?php echo esc_attr($tab_key); ?>" role="tab">
<?php echo esc_html($tab_labels[$tab_key] ?? ucfirst($tab_key)); ?>
<span class="dashboard-tabs__count opacity8"><?php echo esc_html((string) $tab_count); ?></span>
</button>
<button type="button" class="<?php echo esc_attr(trim($tab_class)); ?>" data-tab="<?php echo esc_attr($tab_key); ?>" role="tab">
<?php echo esc_html($tab_labels[$tab_key] ?? ucfirst($tab_key)); ?>
<span class="dashboard-tabs__count opacity8"><?php echo esc_html((string) $tab_count); ?></span>
</button>
<?php endforeach; ?>
</div>