Skip to content
Snippets Groups Projects
Commit d1825f2d authored by Shelane French's avatar Shelane French
Browse files

Issue #3495081: Responsive Tables are not responsive

parent 0cba121e
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,7 @@
sticky ? 'sticky-enabled',
]
%}
{% if responsive %}
{% if bs_responsive %}
<div class="table-responsive">
{% endif %}
......@@ -129,6 +128,6 @@
</tbody>
</table>
{% if responsive %}
{% if bs_responsive %}
</div>
{% endif %}
......@@ -481,7 +481,7 @@ function template_preprocess_views_bootstrap_tab(array &$vars): void {
function template_preprocess_views_bootstrap_table(array &$vars): void {
$options = $vars['view']->style_plugin->options;
$vars['attributes'] = new Attribute(['class' => ['table']]);
$vars['responsive'] = $options['responsive'];
$vars['bs_responsive'] = $options['responsive'];
foreach (array_filter($options['bootstrap_styles']) as $style) {
$vars['attributes']->addClass('table-' . $style);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment