daun / statamic-widget-collection-count

Display the number of entries per collection in your Statamic control panel
https://statamic.com/addons/daun/collection-count-widget
MIT License
5 stars 0 forks source link

Addon CSS is overriding default Statamic V4 tailwind #1

Closed Jaybuz closed 4 months ago

Jaybuz commented 4 months ago

Your .w-full is overriding the default responsive classes.

See my screenshot: image

I would suggest removing the addon CSS and try to use the built-in Statamic Tailwind CSS instead.

Thanks.

daun commented 4 months ago

If we don't bundle the styles used by the addon, there's a lot of tailwind classes that aren't available because they're not used inside of (and thus not compiled by) Statamic itself. So that's unfortunately not an option.

Can you think of a way to include the addon styles before the core files? Changing the order should intuitively solve this...

Jaybuz commented 4 months ago

A prefix would fix it: https://tailwindcss.com/docs/configuration#prefix

daun commented 4 months ago

I've released v1.1.1 with an updated tailwind configuration to not include !important statements.

Thanks for the pointer, and let me know if that fixes it for you.