Make sure grid action links preserve white-space

i.e. don't wrap between link icon and text!
This commit is contained in:
Lance Edgar 2019-07-01 11:46:52 -05:00
parent ff3ee351d1
commit a4d6c6694a
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,15 @@
/********************************************************************************
* grids.css
*
* Style tweaks for the Buefy grids.
********************************************************************************/
/******************************
* actions column
******************************/
a.grid-action {
white-space: nowrap;
}

View file

@ -146,6 +146,7 @@
<b-table-column field="actions" label="Actions">
% for action in grid.main_actions:
<a :href="props.row._action_url_${action.key}"
class="grid-action"
% if action.click_handler:
@click.prevent="${action.click_handler}"
% endif

View file

@ -356,6 +356,7 @@
${h.stylesheet_link(request.static_url('tailbone:static/themes/bobcat/css/base.css') + '?ver={}'.format(tailbone.__version__))}
${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/layout.css') + '?ver={}'.format(tailbone.__version__))}
${h.stylesheet_link(request.static_url('tailbone:static/css/grids.css') + '?ver={}'.format(tailbone.__version__))}
${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/grids.css') + '?ver={}'.format(tailbone.__version__))}
${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/grids.rowstatus.css') + '?ver={}'.format(tailbone.__version__))}
## ${h.stylesheet_link(request.static_url('tailbone:static/css/filters.css') + '?ver={}'.format(tailbone.__version__))}
${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/filters.css') + '?ver={}'.format(tailbone.__version__))}