Skip to content
Discussion options

You must be logged in to vote

Ok, let's try this:

with ui.row().classes('w-full h-[calc(100vh-2rem)] no-wrap gap-10 items-stretch'):
    with ui.column().classes('w-1/3 bg-green-200 gap-24 items-stretch'):
        ui.label('A').classes('h-1/3 bg-red-200')
        ui.label('B').classes('h-2/3 bg-red-200')
    with ui.column().classes('w-2/3 bg-green-200 gap-24 items-stretch'):
        ui.label('C').classes('h-1/3 bg-red-200')
        ui.label('D').classes('h-1/3 bg-red-200')
        ui.label('E').classes('h-1/3 bg-red-200')

Notes:

  • There is no trivial way to fill 100% of the vertical space, because the HTML body scrolls by default. But you can calculate the height from 100% of the view height minus twice the vertical …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jdegenstein
Comment options

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