Reproduction URL (Required)
https://play.tailwindcss.com/GjYkrVib7m
What version of daisyUI are you using?
5.5.5
Which browsers are you seeing the problem on?
Chrome
Describe your issue
After modifying the default --size-selector at the theme level, which the theme editor allows, empty badges lose their square ratio. The issue is that the padding-inline attribute uses a hardcoded value 0.25rem matching the default selector value, which makes the issue not obvious since all official themes use this value in their --size-selector. The suggested fix is to use the --size-selector variable instead of the hardcoded 0.25rem to adjust the horizontal padding.
I suggest replacing the following expression in all sizes:
padding-inline: calc(0.25rem * 3 - var(--border));
with:
padding-inline: calc(var(--size-selector) * 3 - var(--border));
Reproduction URL (Required)
https://play.tailwindcss.com/GjYkrVib7m
What version of daisyUI are you using?
5.5.5
Which browsers are you seeing the problem on?
Chrome
Describe your issue
After modifying the default
--size-selectorat the theme level, which the theme editor allows, empty badges lose their square ratio. The issue is that thepadding-inlineattribute uses a hardcoded value0.25remmatching the default selector value, which makes the issue not obvious since all official themes use this value in their--size-selector. The suggested fix is to use the --size-selector variable instead of the hardcoded0.25remto adjust the horizontal padding.I suggest replacing the following expression in all sizes:
with: