Tagged: bug
When viewing a table in mobile-view, the headers are inlined by using the css :before trick. However, the offset is wrong, the nth-of-type(n) offset is starting at 0 instead of 1.
The affected code is config-templatebuilder/avia-shortcodes/table.php line 294, and here is a fix:
$responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type(" . ($counter+1) . "):before { content: '".$row['content'][$counter]['content']."'; } ";
Original line:
$responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type({$counter}):before { content: '".$row['content'][$counter]['content']."'; } ";
Hi!
Thanks for your contribution, i’ll let Kriesi know :)
Best regards,
Josue