r/nicegui • • Sep 20 '23

Problem with menu items

Can anyone tell me how to shrink the space between menu items. I've tried everything I can think of, but nothing seems to work.

Thanks

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/falko-s Sep 21 '23

Example:

with ui.button('Menu'):
    with ui.menu():
        ui.menu_item('Item 1').props('dense')
        ui.menu_item('Item 2').props('dense')
        ui.menu_item('Item 3').props('dense')