Przywrócono wybór serwerów; poprawki wyglądu

This commit is contained in:
2022-06-13 17:20:11 +02:00
parent e9e4096ba1
commit bde5579f71
7 changed files with 93 additions and 82 deletions
+7 -10
View File
@@ -5,15 +5,13 @@
<span class="text--primary">{{ prefix }}</span> {{ computedSelectedItem.value }}
</button>
<ul class="options" :ref="(el) => (listRef = el)">
<ul class="options" :ref="(el) => (listRef = el as Element)">
<li class="option" v-for="(item, i) in itemList" :key="item.id">
<transition
name="unfold"
:style="
`
:style="`
--delay-in: ${i * 55}ms;
--delay-out: ${(itemList.length - 1 - i) * 55}ms`
"
--delay-out: ${(itemList.length - 1 - i) * 55}ms`"
>
<label :for="item.id" v-if="listOpen">
<input type="button" :id="item.id" name="select-box" @click="selectOption(item)" />
@@ -36,7 +34,7 @@
import { computed, defineComponent, Ref, ref } from '@vue/runtime-core';
interface Item {
id: string | number;
id: string;
value: string;
}
@@ -141,7 +139,8 @@ export default defineComponent({
.arrow {
position: absolute;
top: 50%;
right: 0.5em;
right: 0;
padding: 0.5em;
img {
vertical-align: middle;
@@ -160,7 +159,7 @@ button.selected {
font-size: 1em;
padding: 0.35em 0.5em;
padding-right: 2em;
margin-right: 1.4em;
width: 100%;
cursor: pointer;
@@ -181,8 +180,6 @@ button.selected {
height: 100%;
min-width: 12em;
text-align: center;
}