Ui box is auto x auto. I can`t see any content. #4380
-
QuestionI can't see any content on the desktop, but it appears on mobile. I checked using F12 and found that the box size is auto x auto. def get_hear(zero=None):
with ui.row().classes("w-full bg-blue-300 px-[16px] py-[20px] text-[16px]")as row:
# desktop
with ui.row().classes("hidden md:flex w-full justify-between"):
with ui.row():
if zero:
zero()
ui.label("Hello world")
with ui.row():
ui.label("1")
ui.label("2")
ui.label("3")
ui.label("4")
ui.label("5")
# mobile
with ui.row().classes("flex md:hidden h-full w-full flex justify-between "):
with ui.row():
if zero:
zero()
ui.label("Hello world")
with ui.row():
ui.label("button")
return row |
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Feb 24, 2025
Replies: 1 comment 5 replies
-
Hi @hjdxm, Can you, please, try to create a minimum reproducible code example? This would allow us and the community to help more efficiently. Thanks! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, I see. So this is a minimal example:
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":
See #4111 (comment) for a similar question.