Skip to content

How to set property height for ui.table rows? #4394

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

You must be logged in to vote

Hi @tz301,

I think you need to reduce the vertical padding so that the rows can shrink further:

ui.add_css('''
    .custom-table thead tr { height: 36px; }
    .custom-table tbody td { height: 36px; padding: 0 16px; }
''')
ui.table(rows=[{'name': 'Alice'}, {'name': 'Bob'}, {'name': 'Carol'}]).classes('custom-table')

Replies: 1 comment 1 reply

Comment options

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

Answer selected by tz301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants