Skip to content
Discussion options

You must be logged in to vote

Hi @PawelRoman,

You can add wrap=False to prevent the ui.row element from wrapping:

with ui.row(wrap=False).classes("flex flex-row"):
    with ui.column().classes("basis-1/4 border"):
        ui.label("1/4 col")
    with ui.column().classes("basis-3/4 border"):
        ui.label("3/4 col")

The difference to a plain Tailwind example might come from ui.row's default layout, which uses Quasar's "row" class to create a flex layout. While CSS's flexboxes don't wrap by default, Quasar's "row" does. That's why we introduced the wrap parameter.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@PawelRoman
Comment options

@falkoschindler
Comment options

Answer selected by PawelRoman
Comment options

You must be logged in to vote
0 replies
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