• A new version of Full Calendar is now available.

    See the details here

Fixed Alignment of repeat groups in a list view

ghicar

Member
There is a small cosmetic issue in a list view with a repeating group with "merge" or "merge reduce". When there are multiple repeat groups the elements are displayed in an unordered list, whereas when there is only a single repeat group the elements are simply displayed without an unordered list. This results in non alignment vertically as there is a 5px padding applied when >1 repeat groups present.

original.png


I have worked round this using some custom css in ~components/com_fabrik/views/list/tmpl/bootstrap/custom-css.php
Code:
td.repeat-merge ul.fabrikRepeatData li, td.repeat-reduce ul.fabrikRepeatData li {
    padding: 5px 5px 5px 0 !important;
}

td.repeat-merge, td.repeat-reduce {
    padding-left: 5px !important;
}

Which gives a better presentation (vertically aligned text):
attempt3.png

Environment is
Fabrik 4.3.1
Joomla 5.1.4
php 8.2.22
 
Last edited:
Hi Achartier, I guess a bit hard to see in the screenshots, but the rows with a single repeat have no left padding in the Role and Name columns. So the text do not left align which is visually unappealing.
original-zoomed.png
 
Works for me, many thanks.

My thought was that the issue stemmed from the fact that Fabrik displays multiple repeats as an UL whereas when there is a single repeat it is displayed without the UL. I guess Fabrik could always display a repeatable group as an UL irrespective of how many repeats there are.
 
Back
Top