From 09f62bc2b050ee2f3f2bcd88c83493cabbc5c39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Lain=C3=A9?= Date: Wed, 16 Oct 2024 09:53:03 +0200 Subject: [PATCH] =?UTF-8?q?Retours=20css=20mobile=20=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/carte/Map.vue | 33 ++----------- client/components/carte/Table.vue | 14 +++++- client/components/carte/commune/Filter.vue | 6 +-- client/components/carte/commune/Map.vue | 49 ++++++++++++++----- client/components/donnees/AreaChart.vue | 15 ++++-- client/components/donnees/AreaTable.vue | 17 ++++++- .../donnees/ArretesRestrictionsTable.vue | 9 +++- client/components/donnees/CommuneChart.vue | 40 +++------------ client/components/donnees/CommuneTable.vue | 17 ++++++- .../components/donnees/DepartementChart.vue | 15 ++++-- .../components/donnees/DepartementTable.vue | 17 ++++++- client/components/donnees/Filter.vue | 4 +- client/components/mixins/Donnees.vue | 2 +- .../mixins/NiveauGraviteLegende.vue | 34 +++++++++++++ client/components/mixins/Search.vue | 2 +- client/plugins/vue-dsfr.ts | 1 - client/utils/index.ts | 6 ++- 17 files changed, 178 insertions(+), 103 deletions(-) create mode 100644 client/components/mixins/NiveauGraviteLegende.vue diff --git a/client/components/carte/Map.vue b/client/components/carte/Map.vue index 5abca7c..fb493f8 100644 --- a/client/components/carte/Map.vue +++ b/client/components/carte/Map.vue @@ -3,7 +3,6 @@ import * as maplibregl from 'maplibre-gl'; import { Ref } from 'vue'; import { PMTiles, Protocol } from 'pmtiles'; import api from '../../api'; -import niveauxGravite from '../../dto/niveauGravite'; import { useRefDataStore } from '../../store/refData'; const props = defineProps<{ @@ -206,7 +205,7 @@ const typeEauTags: Ref = ref([{ }, { label: 'Eau superficielle', value: 'SUP', - text: `d'un cours d'eau, d'une rivière`, + text: `des cours d'eau, rivières`, }, { label: 'Eau souterraine', value: 'SOU', @@ -455,18 +454,7 @@ watch(() => props.area, () => { tag-name="button" /> -
- -
+
@@ -481,18 +469,7 @@ watch(() => props.area, () => { tag-name="button" /> -
- -
+
props, () => { :rows="rowsFiltered" :pagination="true" :key="componentKey" - class="fr-table--layout-fixed fr-table--no-title" /> + class="fr-table--sm fr-table--no-title" />
@@ -191,7 +191,6 @@ watch(() => props, () => { } &-body { - background: var(--grey-1000-50); padding-bottom: 1rem; } @@ -214,4 +213,15 @@ watch(() => props, () => { margin: 0 -0.5rem; } } + +.fr-table { + overflow: auto; +} + +@media screen and (min-width: 768px) { + .fr-table > :deep(table) { + display: table; + table-layout: fixed; + } +} \ No newline at end of file diff --git a/client/components/carte/commune/Filter.vue b/client/components/carte/commune/Filter.vue index d3a83f7..96b5310 100644 --- a/client/components/carte/commune/Filter.vue +++ b/client/components/carte/commune/Filter.vue @@ -151,7 +151,7 @@ watch(() => refDataStore.departements, () => { + + \ No newline at end of file diff --git a/client/components/donnees/ArretesRestrictionsTable.vue b/client/components/donnees/ArretesRestrictionsTable.vue index e0a8981..6e2449d 100644 --- a/client/components/donnees/ArretesRestrictionsTable.vue +++ b/client/components/donnees/ArretesRestrictionsTable.vue @@ -92,6 +92,7 @@ watch(() => props, () => { :headers="headers" :rows="rows" :pagination="true" + class="fr-table--sm" :key="componentKey" />
@@ -106,4 +107,10 @@ watch(() => props, () => {
- \ No newline at end of file + + + \ No newline at end of file diff --git a/client/components/donnees/CommuneChart.vue b/client/components/donnees/CommuneChart.vue index 9adce95..6d2f522 100644 --- a/client/components/donnees/CommuneChart.vue +++ b/client/components/donnees/CommuneChart.vue @@ -143,7 +143,7 @@ async function downloadGraph() { \ No newline at end of file + + + \ No newline at end of file diff --git a/client/components/donnees/DepartementChart.vue b/client/components/donnees/DepartementChart.vue index 9d8c385..9ab26a8 100644 --- a/client/components/donnees/DepartementChart.vue +++ b/client/components/donnees/DepartementChart.vue @@ -207,7 +207,7 @@ const tooltipTitle = (tooltipItems: any[]): string => { const chartLineOptions: ChartOptions = { responsive: true, - maintainAspectRatio: true, + maintainAspectRatio: false, scales: { x: { type: 'time', @@ -293,7 +293,7 @@ watch(() => refDataStore.departements, () => { \ No newline at end of file + + + \ No newline at end of file diff --git a/client/components/donnees/Filter.vue b/client/components/donnees/Filter.vue index d81e735..7be35ce 100644 --- a/client/components/donnees/Filter.vue +++ b/client/components/donnees/Filter.vue @@ -72,14 +72,14 @@ watch(() => refDataStore.departements, () => {