2
0
mirror of https://github.com/frappe/books.git synced 2025-02-14 01:40:26 +00:00

fix(ui): select chevrons don't share space with text, no overflow issue

This commit is contained in:
18alantom 2021-12-16 15:54:38 +05:30 committed by Alan
parent 6fdbad1882
commit ce7ef72048

View File

@ -8,19 +8,25 @@
relative
flex
items-center
justify-end
justify-between
bg-white
focus-within:bg-gray-200
"
:class="inputClasses"
>
<select
class="appearance-none bg-transparent focus:outline-none w-full"
:class="isReadOnly && 'pointer-events-none'"
class="appearance-none bg-transparent focus:outline-none w-11/12"
:class="{
'pointer-events-none': isReadOnly,
'text-gray-400': !value,
}"
:value="value"
@change="(e) => triggerChange(e.target.value)"
@focus="(e) => $emit('focus', e)"
>
<option value="" disabled selected>
{{ inputPlaceholder }}
</option>
<option
v-for="option in options"
:key="option.value"
@ -29,14 +35,9 @@
{{ option.label }}
</option>
</select>
<div
class="absolute left-0 pl-2 text-gray-400 pointer-events-none"
v-if="!value"
>
{{ inputPlaceholder }}
</div>
<svg
class="w-3 h-3 absolute"
class="w-3 h-3"
style="background: inherit; z-index: 1; transform: translateX(3px)"
viewBox="0 0 5 10"
xmlns="http://www.w3.org/2000/svg"
>