diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index e57b292..a57150b 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/components.json b/docs/examples/kaak-voice/components.json index cf5eb6b..e0463ef 100644 --- a/docs/examples/kaak-voice/components.json +++ b/docs/examples/kaak-voice/components.json @@ -778,21 +778,6 @@ "aria-label": "语音房间 / Voice room" }, "children": [ - { - "tag": "header", - "part": "voice-stage-heading", - "children": [ - { - "tag": "h2", - "part": "section-label", - "children": [ - { - "text": "房间成员 / IN VOICE" - } - ] - } - ] - }, { "widget": "voice.member-cards", "part": "member-cards" diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index 1c10f20..eb1a956 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.13", + "version": "3.1.14", "author": "WebSpeak Project", "license": "AGPL-3.0-only", "description": "A KOOK-inspired voice workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and animated speaker states.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index 9710650..999cf92 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -755,14 +755,6 @@ background: var(--skin-kaak-bg); } -[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] { - display: flex; - align-items: center; - justify-content: space-between; - min-height: 48px; - border-bottom: 1px solid var(--skin-kaak-border); -} - [data-ws-plugin-part="kaak-workspace.chat-panel-toggle"] { display: grid; flex: 0 0 36px; @@ -805,9 +797,6 @@ margin: 0; } -[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] .section-label { margin: 0; } -[data-ws-plugin-part="kaak-workspace.member-total"] { color: var(--skin-kaak-dim); font-size: 11px; } - [data-ws-plugin-part="kaak-workspace.member-cards"] { flex: 1 1 auto; min-width: 0; @@ -1257,8 +1246,6 @@ height: 40px; } - [data-ws-plugin-part="kaak-workspace.voice-stage-heading"] { min-height: 22px; border: 0; } - [data-ws-plugin-part="kaak-workspace.voice-stage-heading"] .section-label { max-width: 160px; font-size: 8px; } [data-ws-plugin-part="kaak-workspace.member-cards"] { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; scrollbar-gutter: auto; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-grid { display: flex; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; min-width: 0; min-height: 0; align-items: center; gap: 8px; overflow: auto hidden; margin: 3px 0 0; padding: 2px 2px 4px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { flex: 0 0 220px; width: 220px; max-width: none; min-height: 0; height: auto; aspect-ratio: 1.82; border-radius: 9px; } diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index e57b292..a57150b 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 832ba66..613a25e 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.13", + version: "3.1.14", author: "WebSpeak Project", license: "AGPL-3.0-only", description: "A KOOK-inspired voice-room workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and host-owned voice controls.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index 4f2204a..4ee7066 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -464,7 +464,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.13"); + assert.equal(skin.version, "3.1.14"); 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"); @@ -510,6 +510,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.equal(voice?.root.attributes?.["data-chat-open"], "{{state.chatopen}}"); assert.equal(findPart(voice?.root, "server-monogram")?.children?.[0]?.text, "{{server.monogram}}"); assert.equal(findPart(voice?.root, "server-monogram")?.attributes?.["data-tone"], "{{server.tone}}"); + assert.equal(findPart(voice?.root, "voice-stage-heading"), undefined); assert.deepEqual(findPart(voice?.root, "channel-voice-members")?.when, { path: "channel.members", empty: false }); assert.equal(findPart(voice?.root, "channel-voice-member")?.repeat?.path, "channel.members"); assert.equal(findPart(voice?.root, "channel-member-avatar")?.children?.[0]?.text, "{{voicemember.avatarInitial}}"); @@ -530,6 +531,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.ok(skin.css.includes('[data-ws-plugin-part="kaak-workspace.channel-row"]')); assert.match(skin.css, /kaak-workspace\.voice-channel-group-toggle/); assert.match(skin.css, /kaak-workspace\.server-monogram"\]\[data-tone="0"\]/); + assert.doesNotMatch(skin.css, /kaak-workspace\.voice-stage-heading/); assert.match(skin.css, /grid-template-columns: 80px 290px/); assert.match(skin.css, /minmax\(340px, min\(38vw, 520px\)\)/); assert.match(skin.css, /grid-template-rows: 40px/);