Desktop Tab-Grid: Gesundheit (5 Sp.), Admin (4 Sp.), Karte-Legende (8 Sp.), SW by-v332

This commit is contained in:
rene 2026-04-24 10:58:12 +02:00
parent 7ac421fcf9
commit c503737fb1
6 changed files with 50 additions and 2 deletions

View file

@ -56,6 +56,8 @@ window.Page_admin = (() => {
<div id="adm-content"></div>
`;
_container.querySelector('#adm-tabs')
?.style.setProperty('--adm-tab-cols', Math.ceil(TABS.length / 2));
_container.querySelectorAll('#adm-tabs .by-tab').forEach(btn => {
btn.addEventListener('click', () => {
_tab = btn.dataset.tab;