Skip to content

Styling : Gap between group of element #4459

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

You must be logged in to vote

As @evnchn correctly analyzed, "w-1/6" seems to be the problem. What's your intention behind using this class, @chupins?
Some fixed width might be better:

def my_widget(name, value):
    with ui.row(align_items='center'):
        ui.input(label=name, value=value).props('dense').classes('w-40')
        ui.switch(text='var', value=True).props('dense')
        ui.button('Edit')

with ui.row():
    my_widget('wid1', 'toto')
    my_widget('wid2', 'tata')

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

Answer selected by chupins
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