Skip to content

Commit

Permalink
few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitdemaegdt committed Feb 18, 2024
1 parent cabe0e4 commit 8613220
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions components/tooltips/LineTooltip.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<div class="not-prose w-48">
<div class="py-1 bg-zinc-100 flex flex-col items-center justify-center">
<div class="text-gray-900 font-bold text-lg">
Voie Lyonnaise
<div class="text-gray-900 font-bold text-base">
{{ title }}
</div>
<div class="flex flex-row space-x-1">
<div
v-for="line in lines"
:key="line"
class="h-6 w-6 rounded-full flex items-center justify-center text-white text-md font-bold"
class="h-8 w-8 rounded-full flex items-center justify-center text-white text-base font-bold"
:style="`background-color: ${getLineColor(line)}`"
>
{{ line }}
Expand All @@ -26,7 +26,7 @@
</div>
<div class="py-1 flex items-center justify-between">
<div class="text-base font-bold">
statut
Statut
</div>
<div>
<div class="text-sm" :class="getStatus(feature.properties).class">
Expand Down Expand Up @@ -79,6 +79,10 @@ const { feature, lines } = defineProps<{
lines: number[];
}>();
const title = computed(() => {
return lines.length > 1 ? 'Voies Lyonnaises' : 'Voie Lyonnaise';
});
function getDoneAtText(doneAt: string): string {
const [day, month, year] = doneAt.split('/');
const isBeforeMandat =
Expand Down

0 comments on commit 8613220

Please sign in to comment.