Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-dotations-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur dotations aux communes
leximpact-dotations-ui
Commits
22037b0c
Commit
22037b0c
authored
1 month ago
by
sandcha
Browse files
Options
Downloads
Patches
Plain Diff
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
!25
Corrige des dimensions des composants sur petit écran
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/impact/Table.svelte
+218
-214
218 additions, 214 deletions
src/lib/components/impact/Table.svelte
with
218 additions
and
214 deletions
src/lib/components/impact/Table.svelte
+
218
−
214
View file @
22037b0c
...
...
@@ -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
"
,
)
}
€
{
Math
.
round
(
row
.
potentielFinancierMoyenPerHabitant
,
).
toLocaleString
(
"
fr-FR
"
)
}
€
<span
class=
"text-xs text-le-gris-sous-titre"
>
potentiel
financier moyen
/hab.
</span>
...
...
@@ -278,3 +281,4 @@
{
/each
}
</tbody>
</table>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment