Closed flatcapco closed 2 hours ago
Just to clarify - h-auto text-center should be the default
What code are you trying ?
What code are you trying ?
Just the standard badge needs these classes to make it responsive:
<x-badge
class="badge-primary h-auto text-center"
value="A long text example"
/>
maryUI does not put any extra class, see.
https://github.com/robsontenorio/mary/blob/main/src/View/Components/Badge.php#L23
All is handled by daisyUI. In this case you need to use Tailwind class to override the default behavior, for your scenario.
maryUI does not put any extra class, see.
https://github.com/robsontenorio/mary/blob/main/src/View/Components/Badge.php#L23
All is handled by daisyUI. In this case you need to use Tailwind class to override the default behavior, for your scenario.
I did see that line - and I appreciate that you don't, I'll take it up with DaisyUI if its not something you'd like to handle at this level
We rely on daisyUI base classes. And this is a very specific scenario for badges. Fine tuning is always available with custom css/Tailwind classes.
Thats ok - I've posted on the Daisy discussion. I think its a sensible default that shouldn't need custom css, and even though its easy to overwrite that doesn't improve the default framework which would help for more adopters
You find a solution that does not break the current default I would be happy to merge the PR. Thanks!