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
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
4 changed files with 10 additions and 3 deletions

View File

@ -112,7 +112,7 @@
</div>
</template>
<script lang="ts" setup>
import type { LatLng } from "leaflet";
import { LatLng } from "leaflet";
import { Address, IAddress, addressFullName } from "../../types/address.model";
import AddressInfo from "../../components/Address/AddressInfo.vue";
import { computed, ref, watch, defineAsyncComponent } from "vue";

View File

@ -19,6 +19,8 @@
:type="AddressSearchType.ADMINISTRATIVE"
:doGeoLocation="false"
v-model="location"
:hide-map="true"
:hide-selected="true"
/>
<o-button type="submit" icon-left="magnify">
<template v-if="search">{{ t("Go!") }}</template>

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,8 +5,13 @@
v-on="attrs"
>
<template #title>
<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
v-for="i in 6"