[fix](trx-frontend-http): redirect to login when navigating to protected tabs unauthenticated, right-align recorder table buttons

Show the auth gate instead of silently blocking navigation to non-main
tabs when not logged in. Also fix recorder file table layout so the file
column takes full width and action buttons are right-aligned.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-04-04 12:54:11 +02:00
parent 7e15c0b5e4
commit 02ed6d918c
2 changed files with 11 additions and 1 deletions
@@ -4433,7 +4433,10 @@ function updateTabHistory(name, replaceHistory = false) {
function navigateToTab(name, options = {}) { function navigateToTab(name, options = {}) {
const { updateHistory = true, replaceHistory = false } = options; const { updateHistory = true, replaceHistory = false } = options;
if (authEnabled && !authRole && name !== "main") return; if (authEnabled && !authRole && name !== "main") {
showAuthGate(false);
return;
}
const btn = document.querySelector(`.tab-bar .tab[data-tab="${name}"]`); const btn = document.querySelector(`.tab-bar .tab[data-tab="${name}"]`);
if (!btn) return; if (!btn) return;
_activeTab = name; _activeTab = name;
@@ -1244,9 +1244,16 @@ small { color: var(--text-muted); }
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.03em; letter-spacing: 0.03em;
} }
.recorder-table td:first-child,
.recorder-table th:first-child { width: 100%; }
.recorder-table td:nth-child(2),
.recorder-table th:nth-child(2) { white-space: nowrap; }
.recorder-table td:last-child,
.recorder-table th:last-child { text-align: right; white-space: nowrap; }
.recorder-table .rec-file-actions { .recorder-table .rec-file-actions {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end;
gap: 0.4rem; gap: 0.4rem;
} }
.recorder-table .rec-file-btn { .recorder-table .rec-file-btn {