Adjust tabulator row height
Asked Answered
T

1

5

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.

Tokyo answered 4/11, 2018 at 5:7 Comment(0)
J
12

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

Jetta answered 4/11, 2018 at 10:17 Comment(2)
If you make padding smaller than 4px, you also might decrease .tabulator-row min.height.Epitomize
There is a typo in the previous comment, should be "min-height" instead of "min.height". e.g. .tabulator-row { min-height: 20px; }Sobel

© 2022 - 2024 — McMap. All rights reserved.