Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
views_bootstrap
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
views_bootstrap
Commits
d1825f2d
Commit
d1825f2d
authored
4 months ago
by
Shelane French
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3495081
: Responsive Tables are not responsive
parent
0cba121e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/views-bootstrap-table.html.twig
+2
-3
2 additions, 3 deletions
templates/views-bootstrap-table.html.twig
views_bootstrap.theme.inc
+1
-1
1 addition, 1 deletion
views_bootstrap.theme.inc
with
3 additions
and
4 deletions
templates/views-bootstrap-table.html.twig
+
2
−
3
View file @
d1825f2d
...
...
@@ -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
%}
This diff is collapsed.
Click to expand it.
views_bootstrap.theme.inc
+
1
−
1
View file @
d1825f2d
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment