Changeset 0.7.0.13 (#38)

This commit is contained in:
2026-02-21 13:53:36 +00:00
parent a95e246cd7
commit b72bfbb5b4
10 changed files with 42 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
// ==========================================
// Chat Switchboard API Client (v0.7.0)
// Chat Switchboard API Client
// ==========================================
// Backend-only mode. Handles auth tokens and
// all HTTP calls. No offline fallback.

View File

@@ -1,5 +1,5 @@
// ==========================================
// Chat Switchboard Application (v0.6.1)
// Chat Switchboard Application
// ==========================================
const App = {

View File

@@ -1,5 +1,5 @@
// ==========================================
// Chat Switchboard EventBus (v0.5.3)
// Chat Switchboard EventBus
// ==========================================
// Labeled event bus with WebSocket bridge.
// Components subscribe by label (supports * wildcard).

View File

@@ -1,5 +1,5 @@
// ==========================================
// Chat Switchboard UI (v0.6.1)
// Chat Switchboard UI
// ==========================================
const UI = {
@@ -466,7 +466,11 @@ const UI = {
},
applyAppearance(scale, msgFont) {
document.documentElement.style.zoom = scale / 100;
const z = scale === 100 ? '' : scale / 100;
// Zoom content areas + modals (but NOT .app or banners)
document.querySelectorAll('.sidebar, .chat-area, .modal-overlay').forEach(el => el.style.zoom = z);
const splash = document.getElementById('splashGate');
if (splash) splash.style.zoom = z;
document.documentElement.style.setProperty('--msg-font', msgFont + 'px');
localStorage.setItem('cs-appearance', JSON.stringify({ scale, msgFont }));
},