mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
Fix collapsed KAAK share stage
This commit is contained in:
1 parent
8a46691dbb
commit
ff508a8eb9
8 files changed
+18
-10
No files matched your search
@@ -12,7 +12,7 @@
|
||||
|
||||
## 当前检查点(2026-10-11)
|
||||
|
||||
- KAAK 当前源码版本为 3.1.75;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;降噪关闭状态新增红色斜杠提示;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。频道树成员行与成员卡片右键均使用 KOOK 深色浮层格式,菜单项和行为仍为 WebSpeak 原有操作;频道树成员行支持悬停反馈和跨频道拖放移动。屏幕共享播放器限定在中央语音舞台内,成员卡片只使用播放器下方剩余区域。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
|
||||
- KAAK 当前源码版本为 3.1.76;最近新增 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` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。
|
||||
@@ -593,3 +593,10 @@
|
||||
- 根因:KAAK 语音舞台里的播放器宿主是可收缩的 flex 子项,但播放器画面有固定高度;宿主被压缩后,画面仍绘制到成员卡片区域。语音舞台也允许子内容溢出。
|
||||
- 修改范围:只修改 KAAK 皮肤。播放器宿主不再收缩,宽度限制在中央语音舞台列,并按 16:9 高度参与布局;语音舞台裁剪溢出,成员卡片独立使用剩余高度并滚动。窄屏把舞台自身设为滚动区,播放器限高,卡片保留横向名单区域。KAAK 升至 3.1.75;WebSpeak 通用播放器逻辑和其他皮肤未改。
|
||||
- 验证:重建 KAAK 示例与内置 `.wskin`;新增分发包样式断言;`npm run verify` 通过(690/690 测试、服务端 TypeScript 构建、前端类型检查与 Vite 生产构建)。尚未对活动语音会话做浏览器目视验收。
|
||||
|
||||
## 本轮播放器高度回归修复(2026-10-12)
|
||||
|
||||
- 用户反馈:上次布局修复后,其他皮肤播放器正常,但 KAAK 播放器塌缩为一条线。
|
||||
- 根因:播放器组件在非全屏状态会以内联 `aspect-ratio: auto` 覆盖皮肤 CSS;KAAK 先前设置 `height: auto`,而视频与控件为绝对定位,因此舞台失去可计算高度。
|
||||
- 修复范围:仅 KAAK 皮肤显式设定桌面和窄屏播放器高度,保持视频 `object-fit: contain` 和黑边;保留播放器与成员卡片分区布局,不改宿主播放器逻辑或其他皮肤。KAAK 升至 3.1.76。
|
||||
- 验证:示例和内置 `.wskin` 已重建;高度断言和完整 `npm run verify` 通过(690/690 测试、服务端构建、前端类型检查与 Vite 生产构建);`git diff --check` 通过。3040 的新版 KAAK 包返回 HTTP 200(21,950 字节);未做活动语音会话的浏览器目视验收。
|
||||
@@ -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.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 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.76 keeps the shared-screen player inside the central voice-stage column with an explicit responsive height, so the player cannot collapse when the host applies its inline video sizing; member cards scroll in the remaining area. 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.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.75",
|
||||
"version": "3.1.76",
|
||||
"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.",
|
||||
|
||||
@@ -733,10 +733,9 @@
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.screen-share-player"] .screen-share-player-stage {
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
height: min(42dvh, 400px);
|
||||
min-height: 180px;
|
||||
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"] {
|
||||
@@ -1341,7 +1340,9 @@
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.screen-share-player"] .screen-share-player-stage {
|
||||
max-height: min(28dvh, 220px);
|
||||
height: clamp(120px, 28dvh, 220px);
|
||||
min-height: 120px;
|
||||
max-height: 220px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] {
|
||||
|
||||
Binary file not shown.
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.75",
|
||||
version: "3.1.76",
|
||||
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.",
|
||||
|
||||
@@ -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.75");
|
||||
assert.equal(skin.version, "3.1.76");
|
||||
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");
|
||||
@@ -704,7 +704,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
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\.screen-share-player"\] \.screen-share-player-stage \{[^}]*height: min\(42dvh, 400px\);[^}]*min-height: 180px;/);
|
||||
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/);
|
||||
|
||||
Reference in new issue
Block a user