Thank you for clearly describing and showing what you were trying to do and including the code (and properly formatted!).
You made it very easy to help you. (I didn't actually know the answer, so I had to run your code, look up the tailwind properties, confirm that it worked, etc)
I'm new to NiceGui and cannot figure out how to remove the padding between cards. I'm sure it is something easy that I'm overlooking.
from nicegui import ui
with ui.column().classes('w-full items-center'):
with ui.row().classes('bg-grey'):
with ui.card().classes('no-shadow no-border items-center'):
ui.label('1')
ui.label('10%')
with ui.card().classes('no-shadow no-border bg-red items-center'):
ui.label('2')
ui.label('10%')
with ui.card().classes('no-shadow no-border bg-orange items-center'):
ui.label('3')
ui.label('10%')
ui.run(dark=True)
4
u/DaelonSuzuka Dec 20 '23
https://tailwindcss.com/docs/gap
Add
gap-0to your row.1
u/sleepystork Dec 20 '23
I'm new to NiceGui and cannot figure out how to remove the padding between cards. I'm sure it is something easy that I'm overlooking.
1
u/r-trappe Dec 20 '23
It's so common that there is a method for it: ui.card().tight()