Turn admin lobby chat panel into a tab

The lobby chat was a standalone card sitting above the per-player log
tabs. Folds it into the same tab bar as the first (default-active)
tab instead, so the session log view has one consistent tab strip.
The tab-switching script now toggles by an .admin-tab-panel class
instead of assuming every panel's id starts with "player-", since
that's no longer true.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Frank
2026-08-10 16:48:06 +02:00
co-authored by Claude Sonnet 5
parent 2bfc2aca1a
commit a9cb0fa57f
2 changed files with 75 additions and 57 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
const activate = (id) => {
document.querySelectorAll('[id^="player-"]').forEach(el => el.style.display = 'none');
document.querySelectorAll('.admin-tab-panel').forEach(el => el.style.display = 'none');
const target = document.getElementById(id);
if (target) {
target.style.display = 'block';