Desktop Tab-Grid: Gesundheit (5 Sp.), Admin (4 Sp.), Karte-Legende (8 Sp.), SW by-v332
This commit is contained in:
parent
7ac421fcf9
commit
c503737fb1
6 changed files with 50 additions and 2 deletions
|
|
@ -290,6 +290,8 @@ window.Page_health = (() => {
|
|||
${t.icon} ${t.label}
|
||||
</button>
|
||||
`).join('');
|
||||
const count = tabsEl.querySelectorAll('.by-tab').length;
|
||||
tabsEl.style.setProperty('--health-tab-cols', Math.ceil(count / 2));
|
||||
tabsEl.querySelectorAll('.by-tab').forEach(btn => {
|
||||
btn.addEventListener('click', () => {
|
||||
_activeTab = btn.dataset.tab;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue