ui: relations: visual fixes 2

.ui-grid.horizontal now works with elements of different height.

This reverts parts of commit 105522c0ae610807a745ff37adea264f33cd56d9.