From 825dc0b88d6b4c035de9f6a444f1b6b2c5930432 Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 21 Feb 2024 14:29:41 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Modification=20de=20l'=C3=A9chelle=20de?= =?UTF-8?q?=20r=C3=A9sultat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Score.vue | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/Score.vue b/src/components/Score.vue index b6ef393..d866cc7 100644 --- a/src/components/Score.vue +++ b/src/components/Score.vue @@ -88,8 +88,10 @@ function getResultsFromScore(score) { effets: translation.length > 0 ? translation[0].effets : "", facteur: translation.length > 0 ? translation[0].facteur : "", pde: translation.length > 0 ? translation[0].pde : "", + title: translation.length > 0 ? translation[0].title : "", }; - }); + }) + .reverse(); } const results = ref(getResultsFromScore(score)); const result = computed(() => @@ -185,14 +187,14 @@ async function share() {

{{ trad.result_title }}

{{ result.pde_qtra }}

-
+
- {{ index + 1 }} + {{ item.title }}
@@ -381,8 +383,18 @@ label text-shadow: 1px 1px 4px var(--color-highlight-text-invert),-1px -1px 4px var(--color-highlight-text-invert), -1px 1px 4px var(--color-highlight-text-invert), 1px -1px 4px var(--color-highlight-text-invert) color: var(--color-highlight-text) - div + &.size-3 div + width: calc(100%/3) + &.size-4 div + width: calc(100%/4) + &.size-5 div + width: calc(100%/5) + &.size-6 div + width: calc(100%/6) + &.size-7 div width: calc(100%/7) + + div text-align: center align-self: center font-weight: bold