Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #329583

    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']."'; } ";

    #330076

    Hi!

    Thanks for your contribution, i’ll let Kriesi know :)

    Best regards,
    Josue

    #330339

    thanks, added to the theme and will be released with the next bugfix release ;)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Bug: Inline-headers on tables in mobile-view is wrong’ is closed to new replies.