Use normal button for grid filters

since that's more portable (for oruga) than "checkbox button"
This commit is contained in:
Lance Edgar 2024-04-24 18:20:16 -05:00
parent 9f984241c4
commit 0ca3b31b2e
2 changed files with 7 additions and 5 deletions

View file

@ -151,7 +151,8 @@
${h.stylesheet_link(request.static_url('tailbone:static/css/codehilite.css') + '?ver={}'.format(tailbone.__version__))} ${h.stylesheet_link(request.static_url('tailbone:static/css/codehilite.css') + '?ver={}'.format(tailbone.__version__))}
<style type="text/css"> <style type="text/css">
.filters .filter-fieldname { .filters .filter-fieldname,
.filters .filter-fieldname .button {
min-width: ${filter_fieldname_width}; min-width: ${filter_fieldname_width};
justify-content: left; justify-content: left;
} }

View file

@ -181,10 +181,11 @@
<div class="level-item filter-fieldname"> <div class="level-item filter-fieldname">
<b-field> <b-field>
<b-checkbox-button v-model="filter.active" native-value="IGNORED"> <b-button @click="filter.active = !filter.active"
<b-icon pack="fas" icon="check" v-show="filter.active"></b-icon> icon-pack="fas"
<span>{{ filter.label }}</span> :icon-left="filter.active ? 'check' : null">
</b-checkbox-button> {{ filter.label }}
</b-button>
</b-field> </b-field>
</div> </div>