From 4b876a9738d5987f1e27f51e5c62db71fe571506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20F=C3=B6rster?= Date: Thu, 13 Mar 2025 18:09:24 +0100 Subject: [PATCH] FIX versions MOBILE tables --- js/common.js | 15 ++++++--------- styles/supported-versions.css | 4 ---- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/js/common.js b/js/common.js index a70f81236f..0ea0fdc005 100644 --- a/js/common.js +++ b/js/common.js @@ -827,15 +827,12 @@ function getLanguage() { */ $(document).ready(function () { $('table').each(function () { - var $table = $(this); - $table.find('th').each(function (index) { - var $th = $(this); - var text = $th.text(); - if (text === '') { - return; - } - $table.find('td:nth-child(' + (index + 1) + ')') - .attr('data-label', text); + var $columns = $(this).find('td:not(.collapse-phone)'); + var $headers = $(this).find('th'); + $headers.each(function (index) { + $columns.filter(function (counter) { + return index === counter % $headers.length; + }).attr('data-label', $(this).text()); }); }); }); diff --git a/styles/supported-versions.css b/styles/supported-versions.css index f152bcc94c..ec9477ab6e 100644 --- a/styles/supported-versions.css +++ b/styles/supported-versions.css @@ -19,10 +19,6 @@ table.standard tr.stable td:first-child { } table.standard td.collapse-phone { - padding: 0; - } - - table.standard td.collapse-phone * { display: none; } }