From 5111acd50c89d694ba6aaec45946fe2fb87e8798 Mon Sep 17 00:00:00 2001 From: Alisson Nunes Date: Sat, 21 Sep 2024 14:39:29 +0000 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20da=20responsividade=20da?= =?UTF-8?q?=20tabela=20da=20biblioteca?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/biblioteca.astro | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/biblioteca.astro b/src/pages/biblioteca.astro index a92dc2a..0a3952b 100644 --- a/src/pages/biblioteca.astro +++ b/src/pages/biblioteca.astro @@ -135,16 +135,12 @@ Papa.parse(URL_DA_PLANILHA, { } }, responsive: true, - columnDefs: [ - { responsivePriority: 1, targets: -2 }, - { responsivePriority: 2, targets: -1 }, - { responsivePriority: 3, targets: -3 }, - ], fixedHeader: true, data: results.data, - columns: Object.keys(results.data[0]).map(x => ({ + columns: Object.keys(results.data[0]).map((x, i) => ({ data: x, title: x, + className: ['desktop', 'min-tablet-p', 'min-tablet-l', 'all', 'min-mobile-l'][i], render: (d, t) => t === 'display' ? ['Categoria', 'Idioma'].includes(x) ?