Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adjust tabulator row height

Tags:

tabulator

I'm trying to adjust the table row height on a tabulator table. I'm trying to make the rows taller to make it easier to interact with for users on touchscreen devices.

I'm not finding anything in the documentation, and I haven't been successful adjusting the css. What is the proper way to make the rows taller? I'm trying to use Apple's suggestion of a 44px minimum.

like image 526
GFL Avatar asked Nov 04 '18 05:11

GFL


1 Answers

You can do this in CSS by adjusting the cell padding, which by default is 4px

.tabulator-row .tabulator-cell{
    padding:8px 4px;
}

Make sure to include this after the tabulator stylesheet

like image 107
Oli Folkerd Avatar answered Oct 09 '22 07:10

Oli Folkerd