diff --git a/docs/KAAK-CLONE-WORKLOG.zh-CN.md b/docs/KAAK-CLONE-WORKLOG.zh-CN.md index e1620bd..15db9f9 100644 --- a/docs/KAAK-CLONE-WORKLOG.zh-CN.md +++ b/docs/KAAK-CLONE-WORKLOG.zh-CN.md @@ -12,7 +12,7 @@ ## 当前检查点(2026-10-11) -- KAAK 当前源码版本为 3.1.72;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;降噪关闭状态新增红色斜杠提示;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。频道树成员行与成员卡片右键均使用 KOOK 深色浮层格式,菜单项和行为仍为 WebSpeak 原有操作;频道树成员行支持悬停反馈和跨频道拖放移动。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。 +- KAAK 当前源码版本为 3.1.75;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;降噪关闭状态新增红色斜杠提示;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。频道树成员行与成员卡片右键均使用 KOOK 深色浮层格式,菜单项和行为仍为 WebSpeak 原有操作;频道树成员行支持悬停反馈和跨频道拖放移动。屏幕共享播放器限定在中央语音舞台内,成员卡片只使用播放器下方剩余区域。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。 - 语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均已有对应实现;音频设置标签为 KOOK 已记录的 14px/400,表单卡与字段行按实测宽度/行高调整。 - 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。独立文字频道不复刻;KOOK 的付费分享呈现不复刻,WebSpeak 自带屏幕分享入口和播放器保留。 - 设备选择菜单已按皮肤实际高度限位;KAAK 音频滑杆、性能反馈、字体和成员卡交互均有对应实现。3.1.66 完整验证为 680/680,服务端 TypeScript 构建、前端类型检查和生产构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。 @@ -586,3 +586,10 @@ - 用户反馈:以 ILLUSIA 二次元皮肤为例,播放器右侧留白过大、整体偏高。 - 修改范围:这是通用播放器改动,所有皮肤的舞台宽度改为填满可用内容区;桌面高度控制在视口高度的 64% 且不超过 640px,窄屏控制在 58% 且不超过 480px。源视频继续按比例完整显示,超出画布的区域留黑;未改任何皮肤布局或业务行为。 - 验证:`npm run verify` 通过(690/690 测试、服务端构建、前端类型检查及 Vite 生产构建);屏幕共享 UI 回归断言覆盖全宽、桌面高度上限与黑边规则;`git diff --check` 通过。 + +## 本轮播放器区域修复(2026-10-12) + +- 用户反馈:KAAK 语音页的共享播放器和成员卡片互相覆盖,播放器没有限制在自己的布局区域。 +- 根因:KAAK 语音舞台里的播放器宿主是可收缩的 flex 子项,但播放器画面有固定高度;宿主被压缩后,画面仍绘制到成员卡片区域。语音舞台也允许子内容溢出。 +- 修改范围:只修改 KAAK 皮肤。播放器宿主不再收缩,宽度限制在中央语音舞台列,并按 16:9 高度参与布局;语音舞台裁剪溢出,成员卡片独立使用剩余高度并滚动。窄屏把舞台自身设为滚动区,播放器限高,卡片保留横向名单区域。KAAK 升至 3.1.75;WebSpeak 通用播放器逻辑和其他皮肤未改。 +- 验证:重建 KAAK 示例与内置 `.wskin`;新增分发包样式断言;`npm run verify` 通过(690/690 测试、服务端 TypeScript 构建、前端类型检查与 Vite 生产构建)。尚未对活动语音会话做浏览器目视验收。 diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index 4dbf962..49c7928 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -30,7 +30,7 @@ The owner authorized inspection of the first two voice rooms in the KOOK server. ## Components and permissions -The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, disconnect, and screen-share status/read/control. Its member-card widget explicitly enables share status and watch actions; the KAAK dock uses the host's screen-share control. The performance panel hides only share transport metrics. The host renders trusted connection, language, skin, and audio controls. KAAK 3.1.74 keeps the shared-screen player on WebSpeak's fixed 16:9 canvas and shows the full source image with black letterboxing. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control. +The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, disconnect, and screen-share status/read/control. Its member-card widget explicitly enables share status and watch actions; the KAAK dock uses the host's screen-share control. The performance panel hides only share transport metrics. The host renders trusted connection, language, skin, and audio controls. KAAK 3.1.75 keeps the shared-screen player inside the central voice-stage column on a 16:9 canvas; the player reserves its layout height and the member cards scroll in the remaining area, so the two regions cannot cover each other. The full source image remains visible with black letterboxing. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control. The server header uses the live, privacy-filtered TeamSpeak server label and a trusted `voice.server-switcher` menu backed by favorites and recent connections. Its click handler reuses WebSpeak's existing connection flow with an opaque local ID; addresses and credentials never enter skin data. The left panel uses the trusted `voice.channel-tree` widget to retain TeamSpeak channel nesting, member counts and capacity, available avatars, and mute/speaking/away states. Expanding a branch is local UI state, a single click selects a channel, and double-click joins it. With `memberActions` enabled, right-clicking another member row opens WebSpeak's existing host-owned action menu. With `memberDragDrop` enabled, another member can be dragged onto a different channel row; the member row and target channel receive visual feedback, and the host reuses its existing move-client operation. Both options default off for other skins. The skin does not add KOOK's separate text-channel list. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index d8fb700..c79fd32 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 7ff9e37..8ef6b2b 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.74", + "version": "3.1.75", "author": "WebSpeak Project", "license": "AGPL-3.0-only", "description": "A KOOK-inspired voice workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index 349a89b..c7a960f 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -704,19 +704,41 @@ [data-ws-plugin-part="kaak-workspace"] .message-composer input { color: var(--skin-kaak-text); } [data-ws-plugin-part="kaak-workspace.voice-stage"] { - grid-column: 3; - grid-row: 2; - display: flex; - flex-direction: column; - min-width: 0; - min-height: 0; - overflow: auto; - padding: 16px 14px; - border-left: 1px solid var(--skin-kaak-border); - border-right: 1px solid var(--skin-kaak-border); + grid-column: 3; + grid-row: 2; + display: flex; + flex-direction: column; + min-width: 0; + min-height: 0; + overflow: hidden; + padding: 16px 14px; + border-left: 1px solid var(--skin-kaak-border); + border-right: 1px solid var(--skin-kaak-border); background: var(--skin-kaak-bg); } +[data-ws-plugin-part="kaak-workspace.screen-share-player"] { + flex: 0 0 auto; + width: 100%; + max-width: 100%; + min-width: 0; + min-height: 0; + overflow: hidden; +} + +[data-ws-plugin-part="kaak-workspace.screen-share-player"] .screen-share-player { + z-index: 0; + width: 100%; + max-width: 100%; +} + +[data-ws-plugin-part="kaak-workspace.screen-share-player"] .screen-share-player-stage { + height: auto; + min-height: 0; + max-height: min(64dvh, 640px); + aspect-ratio: 16 / 9; +} + [data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) [data-ws-plugin-part="kaak-workspace.voice-stage"] { grid-column: 3 / 5; border-right: 0; @@ -806,13 +828,13 @@ transition: opacity .16s ease, visibility 0s linear .24s; } -[data-ws-plugin-part="kaak-workspace.member-cards"] { - flex: 1 1 auto; - min-width: 0; - min-height: 0; - overflow-x: hidden; - overflow-y: auto; - scrollbar-gutter: stable; +[data-ws-plugin-part="kaak-workspace.member-cards"] { + flex: 1 1 0%; + min-width: 0; + min-height: 0; + overflow-x: hidden; + overflow-y: auto; + scrollbar-gutter: stable; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-grid { @@ -1307,16 +1329,26 @@ [data-ws-plugin-part="kaak-workspace"] .ws-voice-channel-line{ min-height: 44px; } [data-ws-plugin-part="kaak-workspace"] .ws-voice-channel-row{ min-height: 44px; } [data-ws-plugin-part="kaak-workspace"] .ws-voice-channel-join-hint{ display: none; } -[data-ws-plugin-part="kaak-workspace.voice-stage"] { + [data-ws-plugin-part="kaak-workspace.voice-stage"] { grid-column: 2; - grid-row: 3; - min-height: 0; - overflow: hidden; - padding: 5px 8px; - border: 0; + grid-row: 3; + min-height: 0; + overflow-x: hidden; + overflow-y: auto; + padding: 5px 8px; + border: 0; border-bottom: 1px solid var(--skin-kaak-border); } + [data-ws-plugin-part="kaak-workspace.screen-share-player"] .screen-share-player-stage { + max-height: min(28dvh, 220px); + } + + [data-ws-plugin-part="kaak-workspace.member-cards"] { + flex: 0 0 126px; + height: 126px; + } + [data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) [data-ws-plugin-part="kaak-workspace.voice-stage"] { grid-column: 2; } [data-ws-plugin-part="kaak-workspace.voice-stage-heading"] { flex-basis: 38px; margin: -5px -8px 0; padding: 0 8px; } diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index d8fb700..c79fd32 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 040e504..326e68c 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.74", + version: "3.1.75", author: "WebSpeak Project", license: "AGPL-3.0-only", description: "A KOOK-inspired voice-room workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index f5fafe0..6597dc1 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -479,7 +479,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.74"); + assert.equal(skin.version, "3.1.75"); 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"); @@ -701,7 +701,11 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.match(skin.css, /chat-panel-toggle"\]\[aria-expanded="false"\][\s\S]*?voice-stage[\s\S]*?grid-column: 3 \/ 5;/); assert.match(skin.css, /kaak-workspace\.chat-panel-expand[\s\S]*?background: var\(--skin-kaak-accent\);/); assert.match(skin.css, /kaak-workspace\.chat-panel-toggle/); - assert.match(skin.css, /kaak-workspace\.voice-stage[\s\S]*?grid-column: 3;/); + assert.match(skin.css, /kaak-workspace\.voice-stage[\s\S]*?grid-column: 3;/); + assert.match(skin.css, /kaak-workspace\.voice-stage[\s\S]*?overflow: hidden;/); + assert.match(skin.css, /kaak-workspace\.screen-share-player"\]\s*\{[^}]*flex: 0 0 auto;[^}]*width: 100%;[^}]*max-width: 100%;/); + assert.match(skin.css, /kaak-workspace\.screen-share-player"\] \.screen-share-player-stage \{[^}]*height: auto;[^}]*aspect-ratio: 16 \/ 9;/); + assert.match(skin.css, /kaak-workspace\.member-cards"\]\s*\{[^}]*flex: 1 1 0%;[^}]*overflow-y: auto;/); assert.match(skin.css, /kaak-workspace\.conversation[\s\S]*?grid-column: 4;/); assert.match(skin.css, /conversation[\s\S]*?grid-template-rows: 58px minmax\(0, 1fr\) auto/); assert.match(skin.css, /chat-send[\s\S]*?::after \{ content: "➤";/);