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

This commit is contained in:
kate522 committed 2026-08-23 12:32:39 +08:00
1 parent a06d36ac7b
commit c9c1789aba
2 files changed
+6 -5

No files matched your search

+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>