Skip to content

3 buttons in a row with the same size maximum width #3269

Closed Answered by python-and-fiction
Ovoron asked this question in Q&A
Discussion options

You must be logged in to vote

Parent element is column in 'theme.py' which did not apply with w-full.
Modify it like this:

theme.py:

import ...
@contextmanager
def frame(navtitle: str, foottext: str):
    """Custom page frame to share the same styling and behavior across all pages"""
    ui.colors(primary='#XXXXXX', secondary='#53B689', accent='#111B1E', positive='#53B689')
    with ui.header().classes('justify-between text-white'):
        ui.label(navtitle) 
        with ui.row():
            menu()

    ui.query('body').classes('bg-gradient-to-t from-cyan-500 to-blue-500')
    
    with ui.column().classes('justify-content: flex-start; w-full'):
        yield

And It works as expected:

Replies: 4 comments

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
0 replies
Answer selected by Ovoron
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
community question A question for the NiceGUI community
2 participants