Replies: 1 comment
-
Consider providing a git repo that reproduces the unexpected behavior and we can then take a closer look at what might be the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tailwind version: 4.0.12
ShadCN UI version: 0.0.4
react: 18.3.1
I'm having trouble applying mt-* on different screen size. It doesn't work as it is when I use screen size class prefix with mt-* class. Here's my code:
The mt-0 class works as it's supposed to be, I mean whenever the device screen size is not considered small by Tailwind. And I think the class lg:mt-2 is supposed to work when the device screen size is small, but it doesn't. Interestingly is that, the sm:ml-2 works well.
Below is the UI displayed on small screen

Below is the UI displayed on large screen

Can anybody help me?
Any help would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions