mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-03-12 17:42:53 +00:00
Improves aligment of location components and changes border-color of the input to match the global component color
Solves #1621
This commit is contained in:
parent
a36a514747
commit
3721faa78e
1 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="address-autocomplete">
|
<div class="address-autocomplete">
|
||||||
<o-field
|
<o-field
|
||||||
|
id="FullAddressAutoComplete-o-field"
|
||||||
:label-for="id"
|
:label-for="id"
|
||||||
:message="fieldErrors"
|
:message="fieldErrors"
|
||||||
:variant="fieldErrors ? 'danger' : ''"
|
:variant="fieldErrors ? 'danger' : ''"
|
||||||
|
@ -31,7 +32,7 @@
|
||||||
:id="id"
|
:id="id"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
dir="auto"
|
dir="auto"
|
||||||
class="!mt-0 !h-full"
|
class="FullAddressAutoComplete-o-autocomplete !mt-0 !h-full"
|
||||||
>
|
>
|
||||||
<template #default="{ option }">
|
<template #default="{ option }">
|
||||||
<p class="flex gap-1">
|
<p class="flex gap-1">
|
||||||
|
@ -503,6 +504,17 @@ const fieldErrors = computed(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Change border-color of the input to match the global component color
|
||||||
|
.FullAddressAutoComplete-o-autocomplete {
|
||||||
|
border-color: rgb(30 125 151 / var(--tw-bg-opacity));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Try to remove an alignment glitch
|
||||||
|
// https://framagit.org/framasoft/mobilizon/-/issues/1621
|
||||||
|
#FullAddressAutoComplete-o-field .o-input__wrapper {
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.read-only {
|
.read-only {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue