Skip to content

Commit

Permalink
fix: added fix for badges that have over 99
Browse files Browse the repository at this point in the history
Signed-off-by: Triston <[email protected]>
  • Loading branch information
DatGamingStache authored and deepanchal committed Oct 28, 2024
1 parent 1f6ea88 commit 93fb54c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/Badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
data-testid="testBadgeDiv"
:style="{
backgroundColor: color,
width: width || '10px',
height: height || '10px',
width: width || 'auto',
height: height || 'auto',
minWidth: '20px', // Minimum width for small numbers
padding: '0 6px', // Horizontal padding for larger numbers
}"
>
<div>
Expand Down Expand Up @@ -38,7 +40,10 @@ export default defineComponent({

<style scoped>
.badge {
width: 10px;
height: 10px;
height: 20px; /* Set a fixed height for consistency */
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
</style>

0 comments on commit 93fb54c

Please sign in to comment.