From a5a8648240388eb36aeb4ba1644a0f75eafd4d3a Mon Sep 17 00:00:00 2001 From: illusia <64828020+EchoSixHIYA@users.noreply.github.com> Date: Tue, 1 Sep 2026 22:54:49 +0800 Subject: [PATCH] fix: keep admin lists inside their cards --- web/src/views/AdminView.vue | 67 +++++++++++++++++++++++++++++++++++-- web/src/views/WebClient.vue | 10 ++++++ 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/web/src/views/AdminView.vue b/web/src/views/AdminView.vue index dad531c..1afea47 100644 --- a/web/src/views/AdminView.vue +++ b/web/src/views/AdminView.vue @@ -31,7 +31,7 @@
{{ tr('adminConsole') }}

{{ currentPageTitle }}

{{ tr('gatewayRunning') }}
{{ errorMessage }}
-
+

{{ tr('serverSettings') }}

{{ tr('serverSettingsLead') }}

{{ tr('teamSpeakTarget') }}

{{ testResult.ok ? tr('connectionReady') : tr('connectionFailed') }}{{ testResultText }}
@@ -50,11 +50,11 @@

{{ tr('diagnostics') }}

{{ tr('diagnosticsLead') }}

{{ tr('downloadReport') }}
{{ tr('version') }}
{{ operations.diagnostics.version || '—' }}
{{ tr('runtime') }}
{{ operations.diagnostics.node || '—' }}
{{ tr('platform') }}
{{ operations.diagnostics.platform || '—' }} / {{ operations.diagnostics.arch || '—' }}
{{ tr('databaseSchema') }}
v{{ operations.diagnostics.schemaVersion || '—' }}
{{ tr('createdSessions') }}
{{ operations.diagnostics.createdSessions }}

{{ tr('logViewer') }}

{{ tr('logViewerLead') }}

{{ tr('logsUnavailable') }}
{{ entry.level }}
{{ entry.message || '—' }}{{ formatDate(entry.timestamp) }}
{{ tr('noLogs') }}

{{ tr('audit') }}

{{ tr('auditLead') }}

  • {{ eventName(event.event) }}{{ formatDate(event.createdAt) }}
  • {{ tr('auditEmpty') }}
-
+
{{ tr('legacyImported') }}
{{ tr('systemStatus') }}

{{ tr('everythingRunning') }}

{{ tr('overviewLead') }}

{{ tr('running') }}
{{ tr('gateway') }}{{ overview.gateway.version || '—' }}{{ formatUptime(overview.gateway.uptimeSeconds) }}
{{ tr('teamSpeakTarget') }}{{ overview.teamSpeak.target || '—' }}{{ targetStatusText }}
{{ tr('activeSessions') }}{{ overview.sessions.active }} / {{ overview.sessions.limit }}{{ tr('peakSessions', { count: overview.sessions.peak }) }}
-

{{ tr('targetHealth') }}

{{ tr('targetHealthLead') }}

{{ tr('manage') }}
{{ tr('status') }}
{{ targetStatusText }}
{{ tr('detectedProtocol') }}
{{ overview.teamSpeak.protocol?.toUpperCase() || tr('unknown') }}
{{ tr('lastTest') }}
{{ formatDate(overview.teamSpeak.lastTestAt) }}
{{ tr('latency') }}
{{ overview.teamSpeak.latencyMs == null ? '—' : `${overview.teamSpeak.latencyMs} ms` }}

{{ tr('recentEvents') }}

{{ tr('recentEventsLead') }}

  • {{ eventName(event.event) }}{{ formatDate(event.createdAt) }}
  • {{ tr('noRecentEvents') }}
+

{{ tr('targetHealth') }}

{{ tr('targetHealthLead') }}

{{ tr('manage') }}
{{ tr('status') }}
{{ targetStatusText }}
{{ tr('detectedProtocol') }}
{{ overview.teamSpeak.protocol?.toUpperCase() || tr('unknown') }}
{{ tr('lastTest') }}
{{ formatDate(overview.teamSpeak.lastTestAt) }}
{{ tr('latency') }}
{{ overview.teamSpeak.latencyMs == null ? '—' : `${overview.teamSpeak.latencyMs} ms` }}

{{ tr('recentEvents') }}

{{ tr('recentEventsLead') }}

  • {{ eventName(event.event) }}{{ formatDate(event.createdAt) }}
  • {{ tr('noRecentEvents') }}
@@ -493,4 +493,65 @@ async function parseResponse(response: Response) { const value = await response. .admin-shell{display:flex;flex-direction:column} .admin-main{height:auto;flex:1 1 auto} } + +/* Keep static admin cards at their own height. Only long data collections + become scroll surfaces, so a busy event feed cannot stretch its neighbour + or turn the whole admin view into a second page. */ +.admin-main>.page-alert{flex:0 0 auto} +.page-content{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden} +.overview-page{padding:28px 0 18px} +.overview-page .import-notice{flex:0 0 auto;margin-top:0;margin-bottom:12px} +.overview-page .hero-status{flex:0 0 auto;padding:24px} +.overview-page .metric-grid{flex:0 0 auto;gap:12px;margin:14px 0} +.overview-page .metric-grid article{padding:18px} +.overview-page .overview-columns{flex:1 1 0;min-height:0;align-items:stretch;gap:14px} +.target-health-card{align-self:start} +.recent-events-card{display:flex;height:100%;min-height:0;flex-direction:column;overflow:hidden} +.recent-events-card .event-list{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto} +.server-page{padding:28px 0 18px} +.server-page .page-heading{flex:0 0 auto;margin-bottom:14px} +.server-page .settings-grid{flex:1 1 auto;min-height:0;align-items:stretch;gap:14px} +.server-page .settings-card{min-height:0;overflow-y:auto;padding:20px} +.server-page .readonly-card{flex:0 0 auto;margin-top:14px;padding:16px 20px} +.server-page .readonly-card dl{gap:10px;margin-top:12px} +.operations-page{height:auto;min-height:0} +.operations-primary{flex:0 0 250px} +.operations-primary>.operation-card{overflow-y:auto} +.operations-primary>.operation-card{padding:14px 16px} +.operations-primary .operation-card header p{line-height:1.3} +.operations-primary .invite-form{gap:6px;margin-top:8px} +.operations-primary label>span{margin-bottom:4px} +.operations-primary input{height:34px;padding:7px 10px} +.operations-primary .field-help{margin-top:-4px} +.operations-primary .primary-button{min-height:34px} + +/* Theme all native scrollbars used by the admin surfaces. */ +:global(*){scrollbar-color:#8fcfc7 transparent;scrollbar-width:thin} +:global(*::-webkit-scrollbar){width:8px;height:8px} +:global(*::-webkit-scrollbar-track){background:transparent} +:global(*::-webkit-scrollbar-thumb){background:#a7d9d2;background-clip:padding-box;border:2px solid transparent;border-radius:999px} +:global(*::-webkit-scrollbar-thumb:hover){background:#6bbab1;background-clip:padding-box;border-width:1px} +:global(:root[data-theme="dark"] *){scrollbar-color:#438f88 transparent} +:global(:root[data-theme="dark"] *::-webkit-scrollbar-thumb){background:#438f88;border-color:transparent} +:global(:root[data-theme="dark"] *::-webkit-scrollbar-thumb:hover){background:#69c7bc} + +@media(max-width:850px){ + .page-content{width:min(100% - 28px,700px);padding-top:20px;padding-bottom:14px} + .overview-page .hero-status{padding:18px} + .overview-page .hero-status h2{font-size:24px} + .overview-page .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0} + .overview-page .metric-grid article{padding:12px} + .overview-page .metric-grid article>span{top:10px;right:10px;width:28px;height:28px} + .overview-page .metric-grid strong{margin-top:9px;font-size:15px} + .overview-page .overview-columns{grid-template-rows:minmax(0,1fr) minmax(0,1fr);overflow:hidden} + .overview-page .target-health-card{align-self:stretch;min-height:0;overflow-y:auto} + .overview-page .recent-events-card{height:100%} + .server-page .settings-grid{grid-template-columns:1fr;grid-auto-rows:minmax(190px,1fr);overflow-y:auto} + .server-page .readonly-card dl{grid-template-columns:repeat(2,minmax(0,1fr))} + .operations-page{height:100%;overflow:hidden} + .operations-page .operations-primary,.operations-page .lower-operations{grid-template-columns:1fr;min-height:0;overflow-y:auto;align-content:start} + .operations-page .operations-primary{grid-auto-rows:240px} + .operations-page .lower-operations{grid-auto-rows:190px} + .operations-page .lower-operations{flex:1 1 0} +} diff --git a/web/src/views/WebClient.vue b/web/src/views/WebClient.vue index 0601789..f57ac3a 100644 --- a/web/src/views/WebClient.vue +++ b/web/src/views/WebClient.vue @@ -1792,4 +1792,14 @@ function stopWhisperTalk(): void { .app-shell .member-panel.mobile-section-visible { flex: 1 1 auto; min-height: 0; max-height: none; } .mobile-more-panel { min-height: 0; max-height: none; margin-bottom: 0; overflow-y: auto; } } + +/* Match every native scroll surface to the WebSpeak palette. */ +:global(*) { scrollbar-color: #8fcfc7 transparent; scrollbar-width: thin; } +:global(*::-webkit-scrollbar) { width: 8px; height: 8px; } +:global(*::-webkit-scrollbar-track) { background: transparent; } +:global(*::-webkit-scrollbar-thumb) { background: #a7d9d2; background-clip: padding-box; border: 2px solid transparent; border-radius: 999px; } +:global(*::-webkit-scrollbar-thumb:hover) { background: #6bbab1; background-clip: padding-box; border-width: 1px; } +:global(:root[data-theme="dark"] *) { scrollbar-color: #438f88 transparent; } +:global(:root[data-theme="dark"] *::-webkit-scrollbar-thumb) { background: #438f88; border-color: transparent; } +:global(:root[data-theme="dark"] *::-webkit-scrollbar-thumb:hover) { background: #69c7bc; }