[profile] (hopefully) fix the flags interface on mobile
This commit is contained in:
parent
31bf0b5ac5
commit
8fcf96040e
|
@ -3,17 +3,17 @@
|
||||||
<draggable tag="ul" v-model="iVal" ghostClass="ghost" @end="$emit('input', iVal)" :group="ulid"
|
<draggable tag="ul" v-model="iVal" ghostClass="ghost" @end="$emit('input', iVal)" :group="ulid"
|
||||||
class="list-inline border rounded drop-empty px-3 py-2">
|
class="list-inline border rounded drop-empty px-3 py-2">
|
||||||
<li v-for="val in iVal" class="list-inline-item py-1">
|
<li v-for="val in iVal" class="list-inline-item py-1">
|
||||||
<a href="#" class="badge badge-light border p-2" @click.prevent>
|
<a href="#" class="badge badge-light border p-2" @click.prevent="$emit('input', iVal.filter(v => v !== val))">
|
||||||
<slot v-bind:v="val" v-bind:desc="options[val]">
|
<slot v-bind:v="val" v-bind:desc="options[val]">
|
||||||
{{ val }}
|
{{ val }}
|
||||||
</slot>
|
</slot>
|
||||||
<a href="#" class="text-danger" @click.prevent="$emit('input', iVal.filter(v => v !== val))">
|
<span class="text-danger">
|
||||||
<Icon v="times"/>
|
<Icon v="times"/>
|
||||||
</a>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li slot="footer" class="list-inline-item py-1">
|
</draggable>
|
||||||
<div class="input-group">
|
<div class="input-group py-1">
|
||||||
<input v-model="search" class="form-control form-control-sm" :placeholder="$t('crud.search')"/>
|
<input v-model="search" class="form-control form-control-sm" :placeholder="$t('crud.search')"/>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button v-if="search" type="button" class="btn btn-light btn-sm border text-danger" @click.prevent="search = ''">
|
<button v-if="search" type="button" class="btn btn-light btn-sm border text-danger" @click.prevent="search = ''">
|
||||||
|
@ -28,8 +28,6 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
|
||||||
</draggable>
|
|
||||||
|
|
||||||
<draggable tag="ul" v-model="remainingOptions" ghostClass="ghost" @end="$emit('input', iVal)" class="list-inline" :group="ulid">
|
<draggable tag="ul" v-model="remainingOptions" ghostClass="ghost" @end="$emit('input', iVal)" class="list-inline" :group="ulid">
|
||||||
<li v-for="val in remainingOptions" v-if="all || (search && options[val].toLowerCase().includes(search))" class="list-inline-item py-1">
|
<li v-for="val in remainingOptions" v-if="all || (search && options[val].toLowerCase().includes(search))" class="list-inline-item py-1">
|
||||||
|
@ -37,6 +35,9 @@
|
||||||
<slot v-bind:v="val" v-bind:desc="options[val]">
|
<slot v-bind:v="val" v-bind:desc="options[val]">
|
||||||
{{ val }}
|
{{ val }}
|
||||||
</slot>
|
</slot>
|
||||||
|
<span class="text-success">
|
||||||
|
<Icon v="plus"/>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</draggable>
|
</draggable>
|
||||||
|
|
Reference in New Issue