Skip to content
6 changes: 4 additions & 2 deletions layouts/joomla/form/field/subform/repeatable-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@

$sublayout = 'section-byfieldsets';
} else {
foreach ($tmpl->getGroup('') as $field) {
$table_head .= '<th scope="col" style="width:45%">' . strip_tags($field->label);
$fields = $tmpl->getGroup('');
$th_width = 92 / count($fields);
foreach ($fields as $field) {
$table_head .= '<th scope="col" style="width:' . $th_width . '%">' . strip_tags($field->label);

if ($field->description) {
$table_head .= '<span class="icon-info-circle" aria-hidden="true" tabindex="0"></span><div role="tooltip" id="tip-' . $field->id . '">' . Text::_($field->description) . '</div>';
Expand Down