Various homeview fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-19 15:07:58 +02:00
parent be0b3245bf
commit 444e0d6a0c
4 changed files with 10 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
<div class="mb-2">
<div class="w-full flex flex-wrap gap-3 items-center">
<h2
class="text-xl font-bold tracking-tight text-gray-900 dark:text-gray-100"
class="text-xl font-bold tracking-tight text-gray-900 dark:text-gray-100 mt-0"
>
<slot name="title" />
</h2>

View File

@@ -5,7 +5,12 @@
v-on="attrs"
>
<template #title>
{{ t("Events nearby {position}", { position: userLocationName }) }}
<template v-if="userLocationName">
{{ t("Events nearby {position}", { position: userLocationName }) }}
</template>
<template v-else>
{{ t("Events close to you") }}
</template>
</template>
<template #content>
<skeleton-event-result