How to change row spacing of a grid

*I nedd to position the lines of a grid closer together. How to do it?
I run scriptcase V9.6

//onScriptInit

?>
<script>
	window.addEventListener('DOMContentLoaded', function () {
		$('.scGridFieldEvenFont').css('height','20px');
    	$('.scGridFieldOddFont').css('height','20px');
	});
</script>
<?php
4 Likes

It is wonderful
If anyone deserves thanks, it’s you.

This does not seem to work anymore in 9.9.
And the grid lines are too high. I think the spacing above/below is equal to the text… so at least double theheight that it should be. Any solution?

I managed to do this using the advanced theme editor, The padding is there and can be put to zero.

It’s still working for me, 20px is a suggestion, you can put it lower or higher

Editing the theme will do the job but it’s global, if you need to adjust only one grid you need to do it this way

Or create a custom theme for the object in question.