Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.content.classes(remove='q-pa-md') no longer removes padding #596

Closed
chook100 opened this issue Mar 22, 2023 · 1 comment
Closed

Comments

@chook100
Copy link

Hello. After updating to NiceGUI 1.2.0, I have noticed that client.content.classes(remove='q-pa-md') no longer removes the padding on the site. It does not error out or anything, it just does not remove the padding.

@falkoschindler
Copy link
Contributor

falkoschindler commented Mar 22, 2023

Sorry, this is a breaking change that originates from the Tailwind update we did in 1.2.0. Because Tailwind changed the way they handle conflicting classes, it got more difficult to overwrite, e.g., a default row gap of "gap-4" with something like "gap-0". Therefore we replace default classes with default CSS. This solves the problem with Tailwind's new behavior, but changes the layout in cases where you rely on certain classes to be assigned to an element.

To be more specific, the content does not have a class q-pa-md anymore. To remove the padding, simply add a Tailwind class p-0, a Quasar class q-pa-none or no-padding, or a style definition padding: 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants