Skip to content

Ui box is auto x auto. I can`t see any content. #4380

Closed Answered by falkoschindler
hjdxm asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I see. So this is a minimal example:

ui.label('Desktop').classes('hidden md:flex')
ui.label('Mobile').classes('flex md:hidden')

The problem is that "md:flex" doesn't reliably overwrite "hidden". Results for concurring Tailwind classes are hard to predict. It's better to use an upper limit with "max-md":

ui.label('Desktop').classes('max-md:hidden')
ui.label('Mobile').classes('md:hidden')

See #4111 (comment) for a similar question.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@hjdxm
Comment options

@falkoschindler
Comment options

@hjdxm
Comment options

@falkoschindler
Comment options

Answer selected by hjdxm
@hjdxm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants