Is it possible to have a button with a notification badge that maintains a consistent size regardless of the number displayed?
<button class="btn btn-orange w-75 fs-4 mb-3 position-relative">
Next Round
<span class="position-absolute top-0 start-100 translate-middle rounded-pill badge bg-secondary fs-6">
{{ count }}
</span>
</button>
Please note: The variable {{ count }} will range from 1 to 9. The issue arises when the count changes, causing the badge size to fluctuate due to differences in character width.
I attempted setting fixed pixel dimensions for the badge, but maintaining center alignment proved challenging.