3
0
Fork 0

fix: fix style bug for grid "add filter" autocomplete

This commit is contained in:
Lance Edgar 2024-12-16 20:29:12 -06:00
parent 8ac414162d
commit 5493dfeae8

View file

@ -14,7 +14,7 @@
:is-small="smallFilters"
ref="gridFilters" />
<div class="buttons">
<div style="display: flex; gap: 0.5rem;">
<b-button @click="copyDirectLink()"
title="Copy grid link to clipboard"
@ -30,28 +30,29 @@
Apply Filters
</b-button>
<b-button v-if="!addFilterShow"
@click="addFilterInit()"
icon-pack="fas"
icon-left="plus"
:size="smallFilters ? 'is-small' : null">
Add Filter
</b-button>
<b-autocomplete v-if="addFilterShow"
ref="addFilterAutocomplete"
:data="addFilterChoices"
v-model="addFilterTerm"
placeholder="Add Filter"
field="key"
:custom-formatter="formatAddFilterItem"
open-on-focus
keep-first
clearable
clear-on-select
@select="addFilterSelect"
icon-pack="fas"
:size="smallFilters ? 'is-small' : null" />
<div>
<b-button v-if="!addFilterShow"
@click="addFilterInit()"
icon-pack="fas"
icon-left="plus"
:size="smallFilters ? 'is-small' : null">
Add Filter
</b-button>
<b-autocomplete v-if="addFilterShow"
ref="addFilterAutocomplete"
:data="addFilterChoices"
v-model="addFilterTerm"
placeholder="Add Filter"
field="key"
:custom-formatter="formatAddFilterItem"
open-on-focus
keep-first
clearable
clear-on-select
@select="addFilterSelect"
icon-pack="fas"
:size="smallFilters ? 'is-small' : null" />
</div>
<b-button @click="resetView()"
:disabled="viewResetting"