From 2c338550a99afe62a5fdaa7a80978b1f26e7b5d0 Mon Sep 17 00:00:00 2001 From: miriam <miriam@cambrico.net> Date: Wed, 26 Jul 2023 12:11:48 +0200 Subject: [PATCH] Issue #3377045: don't add gin-table-scroll-wrapper if table does not have a header --- templates/dataset/table.html.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/dataset/table.html.twig b/templates/dataset/table.html.twig index 915857c90..d16a90781 100644 --- a/templates/dataset/table.html.twig +++ b/templates/dataset/table.html.twig @@ -40,7 +40,9 @@ */ #} <div class="layer-wrapper gin-layer-wrapper"> + {% if header %} <div class="gin-table-scroll-wrapper"> + {% endif %} <table{{ attributes }}> {% if caption %} <caption>{{ caption }}</caption> @@ -123,5 +125,7 @@ </tfoot> {% endif %} </table> + {% if header %} </div> + {% endif %} </div> -- GitLab