fix: keep the tab rows from scrolling vertically

This commit is contained in:
fromme committed 2026-11-12 11:41:46 +01:00
1 parent e9b0de44f1
commit 8f4c4d8267
3 files changed
+22 -4

No files matched your search

@@ -29,11 +29,11 @@
</div>
</div>
{# one tab per questionnaire, as the record tabs (_partials/_tabs.html.twig) #}
<nav aria-label="Fragebögen" class="flex overflow-x-auto border-b border-line mb-6">
<nav aria-label="Fragebögen" class="tabs mb-6">
{% for other in definitions %}
{% set current = other.key == definition.key %}
<a href="{{ path('app_administrative_questionnaire_index', { 'questionnaire': other.key }) }}"
class="{{ html_classes('-mb-px shrink-0 whitespace-nowrap border-b-4 px-3 py-2 text-sm', { 'border-brand-bright font-bold text-brand': current, 'border-transparent text-ink hover:text-brand': not current }) }}"
class="{{ html_classes('tab', { 'tab--current': current }) }}"
{% if current %}aria-current="page"{% endif %}>{{ other.title }}</a>
{% endfor %}
</nav>