gin-table-scroll-wrapper adds unnecessary horizontal scroll on tables without header
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3377045. -->
Reported by: [peacog](https://www.drupal.org/user/390819)
Related to !286
>>>
<p>The gin-table-scroll-wrapper div introduced in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/gin/-/work_items/3344925" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/gin/-/work_items/3344925</a></span> adds a horizontal scrollbar 240px below tables that don't have a header and therefore don't need the scroll wrapper div. This messes with the <strong>Available updates</strong> report page because the scrollbar appears when you hover over the Drupal core and modules sections.<br>
<img src="https://www.drupal.org/files/issues/2023-07-26/Screenshot%202023-07-26%20115942.png" alt="scroll overflow"></p>
<p>We can fix this by adding the wrapper div only if the table has a header.</p>
> Related issue: [Issue #3375350](https://www.drupal.org/node/3375350)
issue