Skip to content

Commit

Permalink
Correção da responsividade da tabela da biblioteca
Browse files Browse the repository at this point in the history
  • Loading branch information
Alynva committed Sep 21, 2024
1 parent 7739906 commit 5111acd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/biblioteca.astro
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,12 @@ Papa.parse<LibraryRecord>(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) ?
Expand Down

0 comments on commit 5111acd

Please sign in to comment.