diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index 6eb54a5..a8033ef 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index bd35a36..e7e663c 100644 --- a/docs/examples/kaak-voice/manifest.json +++ b/docs/examples/kaak-voice/manifest.json @@ -3,7 +3,7 @@ "packageType": "open-skin", "id": "community.kaak-voice", "name": "KAAK", - "version": "3.1.115", + "version": "3.1.118", "author": "WebSpeak Project", "license": "AGPL-3.0-only", "description": "A KOOK-inspired WebSpeak skin with a split-screen connection home, searchable server header, TeamSpeak banner, nested channel members, unified chat with local history, and a compact audio dock.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index 6e8b8ba..c2f0d7f 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -2341,22 +2341,26 @@ cursor: pointer; } [data-ws-plugin-part="kaak-workspace.desktop-room-controls"] .desktop-room-control-icon { display: block; flex: 0 0 auto; width: 18px; height: 18px; } -[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] { +[data-ws-plugin-part="kaak-workspace.desktop-room-controls"] [data-ws-plugin-part="kaak-workspace.desktop-room-settings"] { display: flex; grid-column: 1; grid-row: 2; align-items: center; justify-content: flex-start; + justify-self: stretch; + box-sizing: border-box; gap: 8px; - width: auto; + width: 100%; + max-width: 100%; min-width: 0; - padding: 0 7px; + margin: 0; + padding: 0; color: #b5c6d8; font-size: 12px; font-weight: 500; line-height: 1; } -[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-icon { +[data-ws-plugin-part="kaak-workspace.desktop-room-controls"] [data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-icon { display: block; flex: 0 0 15px; width: 15px; @@ -2368,7 +2372,7 @@ transform: none; vertical-align: middle; } -[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-label { display: block; line-height: 16px; white-space: nowrap; } +[data-ws-plugin-part="kaak-workspace.desktop-room-controls"] [data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-label { display: block; min-width: 0; overflow: hidden; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; } [data-ws-plugin-part="kaak-workspace.desktop-room-noise-suppression"] { grid-column: 2; grid-row: 2; color: #fff; background: #6cbf00; } [data-ws-plugin-part="kaak-workspace.desktop-room-microphone"] { grid-column: 3; grid-row: 2; } [data-ws-plugin-part="kaak-workspace.desktop-room-output"] { grid-column: 4; grid-row: 2; } @@ -2386,8 +2390,8 @@ } [data-ws-plugin-part="kaak-workspace.desktop-room-noise-suppression"][aria-pressed="true"] { color: #fff; background: #6cbf00; } [data-ws-plugin-part="kaak-workspace.desktop-room-accompaniment"][aria-pressed="true"] { background: #477f00; box-shadow: inset 0 0 0 1px #9be031; } -[data-ws-plugin-part="kaak-workspace.desktop-room-settings"]:hover, -[data-ws-plugin-part="kaak-workspace.desktop-room-settings"]:focus-visible { color: #eff0f3; background: #303238; } +[data-ws-plugin-part="kaak-workspace.desktop-room-controls"] [data-ws-plugin-part="kaak-workspace.desktop-room-settings"]:hover, +[data-ws-plugin-part="kaak-workspace.desktop-room-controls"] [data-ws-plugin-part="kaak-workspace.desktop-room-settings"]:focus-visible { color: #eff0f3; background: #303238; } [data-ws-plugin-part="kaak-workspace.desktop-room-controls"] .desktop-room-control:hover, [data-ws-plugin-part="kaak-workspace.desktop-room-controls"] .desktop-room-control:focus-visible { color: #eff0f3; background: #303238; outline: none; } [data-ws-plugin-part="kaak-workspace.desktop-room-accompaniment"]:hover, @@ -4506,8 +4510,6 @@ [data-ws-plugin-part="kaak-workspace.conversation-heading"] { min-height: 48px; margin: 0; } [data-ws-plugin-part="kaak-workspace.chat-panel-toggle"] { pointer-events: auto; } [data-ws-plugin-part="kaak-workspace.chat-panel"] { min-height: 0; overflow: hidden; } - [data-ws-plugin-part="kaak-workspace.workspace"][data-session-connected="true"]:not([data-mobile-channels="true"])[data-chat-open="true"] [data-ws-plugin-part="kaak-workspace.mobile-room-menu"] { display: none; } - /* The legacy collapsed-chat rule places the room in grid column 2. Keep the connected narrow room in its single-column layout in either chat state. */ [data-ws-plugin-part="kaak-workspace"][data-ws-plugin-surface="voice"]:has( @@ -4528,3 +4530,36 @@ [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { min-height: 116px; height: 116px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 60px; height: 60px; } } + +/* Keep the compact chat on the content side of the persistent server rail. + The room controls remain available after chat is closed, and the rail stays + interactive while the chat page is open. */ +@media (max-width: 820px) { + [data-ws-plugin-part="kaak-workspace"][data-ws-plugin-surface="voice"] [data-ws-plugin-part="kaak-workspace.conversation"][data-chat-open="true"] { + position: fixed; + z-index: 50; + inset: 0 0 0 86px; + pointer-events: auto; + } + + [data-ws-plugin-part="kaak-workspace.workspace"][data-session-connected="true"][data-mobile-channels="true"] [data-ws-plugin-part="kaak-workspace.conversation"][data-chat-open="true"] { + display: none; + pointer-events: none; + } + + [data-ws-plugin-part="kaak-workspace.workspace"][data-session-connected="true"][data-mobile-channels="true"] [data-ws-plugin-part="kaak-workspace.mobile-room-menu"], + [data-ws-plugin-part="kaak-workspace.workspace"][data-session-connected="true"]:not([data-mobile-channels="true"])[data-chat-open="true"] [data-ws-plugin-part="kaak-workspace.mobile-room-menu"] { + display: none; + pointer-events: none; + } + + [data-ws-part="app"]:has([data-ws-plugin-part="kaak-workspace"][data-ws-plugin-surface="voice"]) .modal-backdrop:has([data-ws-part="voice.audio-settings"]) { + z-index: 1000; + } +} + +@media (max-width: 360px) { + [data-ws-plugin-part="kaak-workspace"][data-ws-plugin-surface="voice"] [data-ws-plugin-part="kaak-workspace.conversation"][data-chat-open="true"] { + inset-inline-start: 70px; + } +} diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index 6eb54a5..a8033ef 100644 Binary files a/web/public/skins/kaak-voice.wskin and b/web/public/skins/kaak-voice.wskin differ diff --git a/web/src/services/skin-catalog.ts b/web/src/services/skin-catalog.ts index c1ce1ae..e4314e2 100644 --- a/web/src/services/skin-catalog.ts +++ b/web/src/services/skin-catalog.ts @@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ { id: BUILTIN_KAAK_SKIN_ID, name: "KAAK", - version: "3.1.115", + version: "3.1.118", author: "WebSpeak Project", license: "AGPL-3.0-only", description: "A KOOK-inspired WebSpeak skin with a split-screen connection home, searchable server header, TeamSpeak banner, nested channel members, unified chat with local history, and a compact audio dock.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index 8755d8a..b3642f6 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -486,7 +486,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy const file = new File([archive], "kaak-voice.wskin", { type: "application/octet-stream" }); const skin = await importSkinPack(file); assert.equal(skin.id, "community.kaak-voice"); - assert.equal(skin.version, "3.1.115"); + assert.equal(skin.version, "3.1.118"); assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version); assert.equal(skin.schemaVersion, 3); const home = skin.pluginData?.components.find((component) => component.page === "home"); @@ -662,7 +662,10 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.ok(skin.css.includes("mobile-room-return")); assert.ok(skin.css.includes('[data-ws-plugin-part="kaak-workspace.workspace"][data-session-connected="true"][data-mobile-channels="true"] [data-ws-plugin-part="kaak-workspace.mobile-room-menu"]'), "the room menu stays hidden on the channel tree page"); assert.ok(skin.css.includes("grid-template-columns: 86px minmax(0, 1fr)")); - assert.ok(skin.css.includes("inset: 0 0 0 86px")); + assert.match(skin.css, /kaak-workspace\.conversation.*data-chat-open="true"[\s\S]*?position: fixed;[\s\S]*?inset: 0 0 0 86px;[\s\S]*?pointer-events: auto;/, "the compact chat stays beside the interactive server rail"); + assert.match(skin.css, /@media \(max-width: 360px\)[\s\S]*?kaak-workspace\.conversation.*data-chat-open="true"\]\s*\{\s*inset-inline-start: 70px;/, "the compact chat respects the narrower server rail on small phones"); + assert.match(skin.css, /data-mobile-channels="true"[\s\S]*?kaak-workspace\.conversation.*data-chat-open="true"[\s\S]*?display: none;\s*pointer-events: none;/, "an open chat panel cannot cover or intercept the channel-tree page"); + assert.match(skin.css, /modal-backdrop:has\(\[data-ws-part="voice\.audio-settings"\]\)\s*\{\s*z-index: 1000;/, "the host audio settings dialog stays above the narrow chat overlay"); assert.match(skin.css, /kaak-workspace"\]\[data-ws-plugin-surface="voice"\]:has\([\s\S]{0,180}kaak-workspace\.voice-stage"\]\s*\{[^}]*grid-column: 1;[^}]*grid-row: 3;/, "the collapsed chat state must not push the connected narrow room into an implicit side column"); assert.match(skin.css, /kaak-workspace\.conversation\"]\[data-chat-open="true"\]\s*\{\s*position: absolute;/); assert.match(skin.css, /voice-dock-actions"\] \{ grid-template-columns: minmax\(0, 1fr\) 28px 28px 36px; grid-template-rows: 29px 26px; column-gap: 6px; row-gap: 21px; \}/); @@ -717,6 +720,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-share"\] \{ grid-column: 1 \/ 4; grid-row: 1;/); assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-share"\] \.skin-runtime-screen-share-start \{[\s\S]*?background: #69c000;/); assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.desktop-room-settings"\][\s\S]*?grid-column: 1;[\s\S]*?grid-row: 2;[\s\S]*?justify-content: flex-start;[\s\S]*?gap: 8px;/); + assert.match(skin.css, /desktop-room-controls"\]\s+\[data-ws-plugin-part="kaak-workspace\.desktop-room-settings"\]\s*\{[^}]*justify-self: stretch;[^}]*box-sizing: border-box;[^}]*width: 100%;[^}]*max-width: 100%;[^}]*min-width: 0;/, "the settings control fills its own grid track so its icon and label cannot escape the dock"); assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.desktop-room-noise-suppression"\] \{ grid-column: 2; grid-row: 2; color: #fff; background: #6cbf00; \}/); assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.desktop-room-noise-suppression"\]\[aria-pressed="false"\],[\s\S]*?background: #e34848;/); assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.desktop-room-microphone"\] \{ grid-column: 3; grid-row: 2; \}/);