Skip to content
Snippets Groups Projects
Commit 22037b0c authored by sandcha's avatar sandcha
Browse files

Réactive le scroll horizontal sur le tableau des strates et petit écran

parent d4dbcc8e
No related branches found
No related tags found
1 merge request!25Corrige des dimensions des composants sur petit écran
......@@ -40,13 +40,14 @@
}
</script>
<div class="w-full overflow-x-auto">
<table
class="table-auto border-collapse [&>tbody>*:nth-child(odd)]:bg-gray-100"
>
<thead>
<tr>
{#each titles as title, titleIndex}
<th scope="col" class="pb-4">
<th scope="col" class="px-2 pb-4">
{#if titleIndex === 0}
<span class="text-left">{title}</span>
{:else}
......@@ -65,7 +66,9 @@
? getAmendementStrates()[rowIndex]
: undefined}
{@const trendValue =
amendementAtRow !== undefined ? amendementAtRow.tendance : row.tendance}
amendementAtRow !== undefined
? amendementAtRow.tendance
: row.tendance}
{@const trend = fromEvolutionToTrend(trendValue)}
<tr>
<!-- toutes dotations -->
......@@ -87,9 +90,9 @@
</p>
<p class="text-sm leading-none text-le-gris-sous-titre">
{Math.round(row.potentielFinancierMoyenPerHabitant).toLocaleString(
"fr-FR",
)}&nbsp;
{Math.round(
row.potentielFinancierMoyenPerHabitant,
).toLocaleString("fr-FR")}&nbsp;
<span class="text-xs text-le-gris-sous-titre">
potentiel&nbsp;financier moyen&nbsp;/hab.
</span>
......@@ -278,3 +281,4 @@
{/each}
</tbody>
</table>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment