diff --git a/tailbone/subscribers.py b/tailbone/subscribers.py index ff4527e7..7d81b5b1 100644 --- a/tailbone/subscribers.py +++ b/tailbone/subscribers.py @@ -132,6 +132,17 @@ def before_render(event): renderer_globals['background_color'] = request.rattail_config.get( 'tailbone', 'background_color') + # here we globally declare widths for grid filter pseudo-columns + widths = request.rattail_config.get('tailbone', 'grids.filters.column_widths') + if widths: + widths = widths.split(';') + if len(widths) < 2: + widths = None + if not widths: + widths = ['15em', '15em'] + renderer_globals['filter_fieldname_width'] = widths[0] + renderer_globals['filter_verb_width'] = widths[1] + def add_inbox_count(event): """ diff --git a/tailbone/templates/grids/buefy.mako b/tailbone/templates/grids/buefy.mako index b56ddcae..220bb020 100644 --- a/tailbone/templates/grids/buefy.mako +++ b/tailbone/templates/grids/buefy.mako @@ -5,7 +5,7 @@