Expansion Content Padding #3527
Replies: 1 comment 3 replies
-
with ui.expansion('expansion').classes('bg-grey'):
ui.query('.nicegui-expansion .q-expansion-item__content').style('padding:0',replace='gap:0')
ui.button('button').classes('w-full h-full')
ui.button('button').classes('w-full h-full') |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
PoshoDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm using the
ui.expansion
to create a navigation drawer, but I can't seem to adjust the vertical space between the header and the first item ("Button 1").I need to adjust the space highlighted in blue.
I've also tried setting padding and margin to
0
withui.add_css()
on.q-expansion-item__content
,.q-item
,.q-expansion-item__header
, and other related classes, but I can't get it to work.None of these seem to affect the vertical spacing. How can I eliminate the gap between the header and the first item? Could anyone offer some advice on how to get it to work? Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions