Table Padding on Row Not Working as Expected

Working on a table an noticed the header was not aligned with the tables contents. Followed the thread listed below. Ran into an issue with how the row selection looks.

When a row is selected, I noticed the selection is shifted creating a gap. Visually, not a fan of this. But the tex position is good.

marginLeft fixed the tex.

Decided I need to pad the content. But this has 0 effect.

Setting I applied.

I might be needing to set padding on a different object or should the Padding Left be working? Thoughts?

If you launch the view in a browser you can use Developer Tools (F12) to examine the CSS. Hit the inspect button (top left) and select the item to be examined. Here's what I got:

On the table header:
.table-container .t .thc .content {padding: 5px;}

On a table row:
.table-container .t .tc .content {padding: 0px;}

On the selected row:
.table-container .t .tc .content {padding: 0px;}

If I understand your question properly, the solution is to modify the tc padding by overwriting it in the advanced stylesheet. Add these two lines:

.table-container .t .tc .content {padding: 5px;}
.table-container .t .tc .content {padding: 5px;}

Save and reload the page in the browser. (You may need a Ctrl+F5 to force a reload of the CSS file.


The result.

You should be able to do this directly in the component and not use the stylesheet. I've always done this (mostly within a style class, but same thing). Not sure why it's not working for the OP