Improves aligment of location components

Solves #1621
This commit is contained in:
Massedil
2025-02-14 14:32:56 +01:00
parent f6056ad92b
commit dcffab9b70
2 changed files with 159 additions and 166 deletions

View File

@@ -1,6 +1,5 @@
<template> <template>
<div class="address-autocomplete"> <div class="address-autocomplete">
<div class="">
<o-field <o-field
:label-for="id" :label-for="id"
:message="fieldErrors" :message="fieldErrors"
@@ -32,7 +31,7 @@
:id="id" :id="id"
:disabled="disabled" :disabled="disabled"
dir="auto" dir="auto"
class="!mt-0" class="!mt-0 !h-full"
> >
<template #default="{ option }"> <template #default="{ option }">
<p class="flex gap-1"> <p class="flex gap-1">
@@ -135,11 +134,7 @@
</o-field> </o-field>
<o-field :label="t('Locality')" labelFor="localityInput"> <o-field :label="t('Locality')" labelFor="localityInput">
<o-input <o-input v-model="selected.locality" id="localityInput" expanded />
v-model="selected.locality"
id="localityInput"
expanded
/>
</o-field> </o-field>
</o-field> </o-field>
@@ -162,9 +157,7 @@
</o-button> </o-button>
<p> <p>
{{ {{
t( t("You can drag and drop the marker below to the desired location")
"You can drag and drop the marker below to the desired location"
)
}} }}
</p> </p>
</footer> </footer>
@@ -182,7 +175,6 @@
:readOnly="false" :readOnly="false"
/> />
</div> </div>
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { LatLng } from "leaflet"; import { LatLng } from "leaflet";

View File

@@ -35,6 +35,7 @@
<o-dropdown v-model="distance" position="bottom-right" v-if="distance"> <o-dropdown v-model="distance" position="bottom-right" v-if="distance">
<template #trigger="{ active }"> <template #trigger="{ active }">
<o-button <o-button
class="!h-full"
:title="t('Select distance')" :title="t('Select distance')"
:icon-right="active ? 'menu-up' : 'menu-down'" :icon-right="active ? 'menu-up' : 'menu-down'"
> >