Skip to content

Commit

Permalink
Layout adjustements following review
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Nov 25, 2024
1 parent 68fab4d commit a239603
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 44 deletions.
36 changes: 17 additions & 19 deletions 2024-frontend/src/components/EdibleChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,23 @@ const displayOption = ref("chart")
<div class="fr-col-md-7 fr-mb-2w">
<h3 class="fr-h6 fr-my-0">Part de comestible</h3>
</div>
<div class="fr-col fr-mb-2w">
<div class="fr-grid-row">
<DsfrSegmentedSet
name="Part de comestible"
label="Choix d'affichage"
:options="[
{
label: 'Charte',
value: 'chart',
},
{
label: 'Texte',
value: 'text',
},
]"
v-model="displayOption"
small
/>
</div>
<div class="fr-col fr-mb-2w" style="text-align: right;">
<DsfrSegmentedSet
name="Part de comestible"
label="Choix d'affichage"
:options="[
{
label: 'Charte',
value: 'chart',
},
{
label: 'Texte',
value: 'text',
},
]"
v-model="displayOption"
small
/>
</div>
</div>
<div v-if="displayOption === 'chart'" class="fr-py-2w fr-pr-8w">
Expand Down
36 changes: 17 additions & 19 deletions 2024-frontend/src/components/SourceChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,23 @@ const displayOption = ref("chart")
<div class="fr-col-md-7 fr-mb-2w">
<h3 class="fr-h6 fr-my-0">Origine du gaspillage</h3>
</div>
<div class="fr-col fr-mb-2w">
<div class="fr-grid-row">
<DsfrSegmentedSet
name="Origine du gaspillage"
label="Choix d'affichage"
:options="[
{
label: 'Charte',
value: 'chart',
},
{
label: 'Texte',
value: 'text',
},
]"
v-model="displayOption"
small
/>
</div>
<div class="fr-col fr-mb-2w" style="text-align: right;">
<DsfrSegmentedSet
name="Origine du gaspillage"
label="Choix d'affichage"
:options="[
{
label: 'Charte',
value: 'chart',
},
{
label: 'Texte',
value: 'text',
},
]"
v-model="displayOption"
small
/>
</div>
</div>
<div v-if="displayOption === 'chart'" class="fr-py-2w fr-pr-8w">
Expand Down
10 changes: 4 additions & 6 deletions 2024-frontend/src/components/WasteMeasurementSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const activeAccordion = ref("")
<template>
<div>
<div v-if="displayMeasurement" class="fr-grid-row">
<div v-if="displayMeasurement" class="fr-grid-row fr-grid-row--gutters">
<div class="fr-col fr-mb-4w">
<div v-if="editable" class="fr-grid-row fr-grid-row--bottom fr-mb-4w">
<div class="fr-col-12 fr-col-md-6 fr-pr-4w">
<div class="fr-col-12 fr-pr-4w">
<DsfrSelect v-model="chosenMeasurementIdx" label="Date de l'évaluation" :options="measurementChoices" />
</div>
</div>
Expand All @@ -72,12 +72,10 @@ const activeAccordion = ref("")
</div>
<EmphasiseText :emphasisText="`${formatNumber(wastePerMeal)} g`" contextText="par repas" class="brown" />
<p v-if="editable">
<router-link :to="measurementTunnel" class="fr-btn fr-btn--secondary">
<router-link :to="measurementTunnel" class="fr-btn fr-btn--secondary fr-btn--sm fr-mr-1w fr-mb-1w">
Modifier les données
</router-link>
</p>
<p v-if="editable">
<router-link :to="newMeasurementRoute" class="fr-btn fr-btn--secondary">
<router-link :to="newMeasurementRoute" class="fr-btn fr-btn--primary fr-btn--sm">
Saisir une nouvelle évaluation
</router-link>
</p>
Expand Down

0 comments on commit a239603

Please sign in to comment.