refactor: extract voice member cards with page-owned sharing

This commit is contained in:
illusia committed 2026-10-01 19:20:31 +08:00
1 parent 6ed8abfb15
commit f18fa63001
5 files changed
+115 -79

No files matched your search

+2
View File
@@ -185,6 +185,8 @@ The public join form uses explicit named field models and emits page actions. Th
The member panel and actions menu also share one page-owned member controller. The panel exposes an audio-dock slot; menu placement uses measured viewport bounds, converts through the page CSS zoom, and releases its resize observer/listener on unmount. Only desktop may open the move submenu on hover: mobile bottom-anchored menus change position when expanded and must open on click to avoid moving a member accidentally. Constrain short-window menus and allow scrolling.
Voice member cards receive the current channel projection, speaking/avatar helpers and a narrow sharing interface. Keep the sharing refs stable; member menus and stop-sharing actions return to the page through events. Empty, self, speaking, starting, sharing and viewing states must retain their skin hooks and mobile behavior.
Voice diagnostics and screen-sharing presentation also reuse page-owned controllers. Bind the player and video with explicit element callbacks. Rebind an existing stream when its video element changes, clear the previous element, and never stop the media owner's tracks during presentation cleanup. Fullscreen requires a non-null owned player; removing it exits only its own fullscreen. Known screen owner IDs take precedence over nickname fallback, including duplicate nicknames. Sharing settings use the common dialog focus handling.
The audio dock and whisper strip share the page-owned audio controller. Push-to-talk belongs to one primary pointer or one Space/Enter press; unrelated releases and key repeats must not change it. Failed pointer capture must not enable whispering. Clear ownership before releasing capture, and stop on blur, hidden controls/pages and disposal. The whisper component owns and releases its window/document listeners; keep media state in the voice layer.
+22 -13
View File
@@ -1,18 +1,18 @@
# WebSpeak 代码待修改清单与修改方向
本文聚焦 `webspeak-webclient`,记录当前代码结构、待修改项、大致修改方向与验收条件。本批提取语音诊断、屏幕共享设置和播放器,修复视频元素替换后未绑定现有流、空播放器全屏误判及同昵称共享归属混淆;统一验证通过 409 项测试及前后端构建。待办分为结构整理、已有改动验收和真实环境验证;缺少验证证据的事项不直接认定为代码故障。
本文聚焦 `webspeak-webclient`,记录当前代码结构、待修改项、大致修改方向与验收条件。本批提取剩余语音成员卡片,完成 06-C 计划中的主要展示拆分;业务状态保持原归属,统一验证通过 409 项测试及前后端构建。本批没有新增业务故障修复。待办分为结构整理、已有改动验收和真实环境验证;缺少验证证据的事项不直接认定为代码故障。
按用户要求,每批仅处理当前节点相关问题,合并相关修复后统一验证,不扩展到无关模块。管理页主要交互与布局已检查,原生确认框阻塞的操作验收单独保留。加入、聊天、频道成员、成员菜单、音频设置及密码弹窗已拆分;音频工具栏、私语控制条、语音诊断、共享设置与播放器已提取,后续处理剩余语音活动成员卡片,样式格式整理单独进行。真实消息兼容、TeamSpeak 媒体、Android 真机及发布复现独立跟踪,可提前安排。媒体、连接、命令、诊断、消息、身份及公共皮肤状态已有独立模块,继续复用。当前待办和实施方向放在前部,历史修复及验证记录保留在后部。
按用户要求,每批仅处理当前节点相关问题,合并相关修复后统一验证,不扩展到无关模块。管理页主要交互与布局已检查,原生确认框阻塞的操作验收单独保留。加入、聊天、频道成员、成员菜单、音频设置及密码弹窗已拆分;音频工具栏、私语控制条、语音诊断、共享设置与播放器已提取,本批补齐语音活动成员卡片,后续转入 06-L 的模板与样式格式整理。真实消息兼容、TeamSpeak 媒体、Android 真机及发布复现独立跟踪,可提前安排。媒体、连接、命令、诊断、消息、身份及公共皮肤状态已有独立模块,继续复用。当前待办和实施方向放在前部,历史修复及验证记录保留在后部。
## 范围与依据
- 记录日期:2026 年 10 月 1 日。
- 当前记录基线:`dev` 分支,`8b1c76dc249b5356c037b3050414bb4401126abf`;应用版本 `0.2.5-preview`。以下现状包含当前工作区,不能全部归为该提交的内容。
- 本批仅处理 06-C 的语音诊断、共享设置、播放器展示及其元素绑定、全屏和成员匹配。采样、媒体流及传输仍由父页现有控制模块拥有;协议、数据库和依赖未变。
- 新增 6 项播放器与共享设置测试,覆盖视频替换、清理、不误退出其他全屏、同昵称归属及输出参数。首轮统一验证发现旧样式断言不接受 `:deep` 选择器;保留样式断言内容并兼容组件边界后,`npm run verify` 通过 409 项测试、后端编译及前端类型检查和生产构建。
- 当前记录基线:`dev` 分支,`01fc7f72cf5686f7599b962e41a14e551c95ea0d`;应用版本 `0.2.5-preview`。以下现状包含当前工作区,不能全部归为该提交的内容。
- 本批仅处理 06-C 的语音成员卡片与其所属样式。频道投影、发言状态、成员菜单和共享控制器仍由父页拥有;协议、媒体、数据库和依赖未变。
- 展示提取与相关样式集中完成后执行一次 `npm run verify`:409 项测试、后端编译及前端类型检查和生产构建通过。本批未新增重复实现的单元测试,字段与动作接线通过实际渲染及受控展示状态检查。
- 既有皮肤修复记录记载新增 23 项测试,以及 `npm run verify` 通过 385 项测试和前后端构建;其中 5 项先复现旧结果覆盖及失效归属问题。这些是此前批次的验证结果,不是本轮重新执行的结果。
- 本批使用实际前端及模拟 TeamSpeak 网关检查诊断与设置;30 组语言/皮肤/尺寸抽样通过。另用本地产生的画布媒体验证真实视频元素替换和全屏退出,不采集桌面;这些结果不能证明真实 TeamSpeak 屏幕共享或媒体互通。
- 上批 `8b1c76d` 的 CI 与 Docker 健康检查已确认成功(运行 36852437116);本批共享展示改动需使用自己的提交核对远端结果。
- 本批使用实际前端、模拟网关及受控展示状态检查成员发言、共享入口、开始等待/停止、观看切换、移动菜单及空列表;15 组语言/皮肤/尺寸抽样通过。这些检查不证明真实采集或跨端媒体可用。
- 上批 `01fc7f7` 的 CI 与 Docker 健康检查已确认成功(运行 36853830879);本批卡片改动需使用自己的提交核对远端结果。
- 下文“代码可确认”指控制流或配置可直接支持的判断;具体故障发生条件仍需回归用例验证。“待验收”表示证据尚缺,不等于已发生故障。P1/P2/P3 表示建议实施顺序,不代表安全漏洞等级。
- 后文身份、消息、媒体、皮肤等“实施记录”属于此前批次;其中“本批”指各记录对应的历史批次。当前待办以本页前部状态表为准。
@@ -31,7 +31,7 @@
| 浏览器连接与命令 | `web/src/voice/connection.ts`、`commands.ts` | 连接模块 132 行,拥有请求取消、期限、socket 与代次;命令模块 59 行,拥有确认等待及统一收尾 |
| 浏览器诊断 | `web/src/voice/audio-diagnostics.ts`、`web/src/composables/useWebClientPerformance.ts` | 采样模块 168 行,拥有等待、来源范围与兼容计数;面板 composable 管理轮询和可比样本的展示 |
| 会话消息状态 | `web/src/voice/session-state.ts` | 172 行;拥有成员与频道、聊天历史、事件、通知、会话范围和私聊身份映射 |
| 页面与业务状态 | `web/src/views/`、`web/src/composables/` | 主页面 797 行,管理页 251 行;聊天 composable 管理按会话和对象隔离的草稿、发送等待及反馈 |
| 页面与业务状态 | `web/src/views/`、`web/src/composables/` | 主页面 781 行,管理页 251 行;聊天 composable 管理按会话和对象隔离的草稿、发送等待及反馈 |
| 管理展示组件 | `web/src/components/admin/` | 服务器设置 125 行、运维 39 行、皮肤 48 行;状态仍由父页创建,主要表单与路由交互已验收 |
| 身份导入与导出 | `useWebClientIdentity.ts`、`components/web-client/IdentityImportDialog.vue` | 159 行状态模块与 53 行展示组件;异步操作、启动恢复与导出资源独立归属 |
| 前端基础服务 | `web/src/services/`、`web/src/i18n/`、`web/src/skins/` | 请求、浏览器存储、身份导入、主题、皮肤及多语言;皮肤运行时的提交受取消和期限保护 |
@@ -49,7 +49,7 @@
| 编号 | 优先级 | 待办及依据 | 大致修改方向 | 完成条件 |
| --- | --- | --- | --- | --- |
| 06-C 客户端 | P2 | 加入、聊天、频道成员、成员菜单、设置及密码弹窗已提取;工具栏、私语、诊断、共享设置与播放器已提取,剩余语音活动成员卡片待整理,触屏拖动及原生输入框流程待验收 | 按区域提取,相关区域合并验收;页面保留连接和状态编排 | 表单、五语、主题、皮肤接口、键盘与窄屏布局保持一致 |
| 06-C 客户端验收 | P2 | 计划中的主要展示区域已提取;真实触屏拖动及原生离开/戳人输入框流程仍待验收 | 保留当前状态边界,在支持的浏览器/真机补齐实际交互证据;不为工具限制重写业务 | 触屏拖动及原生输入框完成操作、取消与结果均有记录 |
| 06-C 管理页 | P2 | 展示拆分与主要交互已完成;移除皮肤时原生确认框使浏览器工具卡住,移除、断开会话及下载的完整浏览器流程仍缺记录 | 保留确认与业务逻辑,工具恢复或人工检查时补验,不为绕过工具问题重写功能 | 移除、断开与下载的实际结果有记录;状态及接口测试不能替代完整浏览器链路 |
| 03 | P2 | 共享契约已落地,真实收发与旧客户端兼容仍缺验收证据 | 用脱敏的实际消息样本核对字段、默认值、非法输入及兼容范围 | 两端解析一致;非法消息受控处理,不误丢有效事件 |
| 02-C | P2 | 本机与边界替身测试不能证明真实媒体链路 | 建立真实 TeamSpeak 双向语音、WebRTC 回退、伴奏和多用户验收步骤 | 记录版本、浏览器、网络、设备、步骤及实际结果 |
@@ -80,7 +80,7 @@
### 06-C 页面组件
当前依据:[WebClient.vue](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:1) 有 797 行,加入表单、聊天面板、频道成员、成员菜单、身份导入、音频设置及密码弹窗已独立;父页仍承载语音活动成员卡片及页面编排。[AdminView.vue](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:41) 已由 400 行减至 251 行,三个管理模板迁移到独立组件。管理页剩余浏览器验收缺口见前表,客户端继续明确展示边界;不以文件长度推定运行故障。
当前依据:[WebClient.vue](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:1) 有 781 行,加入表单、聊天面板、频道成员、成员菜单、身份导入、音频设置及密码弹窗已独立;成员卡片也已提取,父页保留页面编排及区域组合。[AdminView.vue](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:41) 已由 400 行减至 251 行,三个管理模板迁移到独立组件。管理页剩余浏览器验收缺口见前表,客户端继续明确展示边界;不以文件长度推定运行故障。
以下名称为建议,实施时按实际接口确定。按稳定区域迁移,相关展示区域合并后统一验收,避免同时重写模板和业务状态。
@@ -92,12 +92,12 @@
| 设置与密码弹窗,已提取 | `AudioSettingsDialog`、`ChannelPasswordDialog`、`ServerPasswordDialog` 展示设置及连接反馈;身份导入此前已提取 | 复用父页单一媒体与连接状态;设置错误受打开代次和请求顺序保护;共享焦点工具管理循环、Esc 和返回 | 焦点、Esc、设置持久化、密码等待与重试已检查;真实设备切换与录音待媒体验收 |
| 音频工具栏与私语,已提取 | `AudioDock` 展示桌面快捷操作;`WhisperControls` 展示目标与按住讲话入口 | 使用父页单一音频控制器;私语按钮只拥有当前输入,隐藏、失焦和卸载时停止;监听随组件释放 | 静音、音量、设置入口、伴奏不可用提示、指针/键盘命令及布局已检查,真实媒体另行验收 |
| 诊断与共享展示,已提取 | `VoicePerformancePanel`、`ScreenShareSettingsDialog`、`ScreenSharePlayer` | 父页创建诊断与共享控制器;视频和播放器通过明确函数引用交回控制器,组件不创建采集或 PeerConnection | 兼容传输诊断、设置字段/焦点、合成视频元素替换与全屏已检查;真实 WebRTC/TeamSpeak 互通仍待验证 |
| 剩余语音活动 | 提取成员卡片及其共享操作入口 | 复用频道投影、成员动作和共享控制器,活动区域保留播放器及私语插槽 | 在线、发言、自身状态、空成员、共享/观看入口和移动菜单保持一致 |
| 语音成员卡片,已提取 | `VoiceMemberCards` 展示成员状态、头像和共享操作入口 | 复用父页频道投影、成员动作与共享控制器,停止共享及菜单用事件返回;活动区域仍由父页组合 | 在线、发言、自身、空成员、共享等待/停止、观看切换、移动菜单和抽样布局已检查 |
| 管理功能页,已提交 | `AdminServerSettings`、`AdminOperations`、`AdminSkins` 已提取,先验收这三个边界 | 父页创建三个管理 composable,通过稳定 `model` 对象传入;登录、CSRF、路由与总览仍在页面;欢迎词语言用具名模型传递,WebRTC 提示用事件返回 | 保存期间继续编辑、请求失败保留草稿、欢迎词语言、退出失败、路由切换、皮肤文件选择及操作互斥 |
接口只传该区域需要的状态和动作,避免把整页上下文塞进一个对象,也避免父子各自实例化同一个业务 composable。管理组件当前使用 `ReturnType<typeof useAdmin...>` 描述功能控制器,并在 setup 中解构,因此依赖父页维持同一控制器实例;若后续支持替换实例,需要同步调整读取方式。可以用 `Pick` 或专用接口缩小暴露范围,但不为形式重写已明确的状态归属。展示辅助函数如头像、时间格式在确有多处复用时集中,不额外引入全局状态层。
样式需要随组件边界一并核对。[客户端样式入口](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:797)和[管理页样式入口](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:251)均使用 `scoped`,当前 CSS 分别为 1,303 与 451 行。身份弹窗已有针对组件的 `:deep` 规则;管理页当前改动将大量功能区选择器改为 `:deep`,并保留部分外壳和语言控件选择器的原作用范围。不要把这项源码变化直接等同于视觉一致:需对比子组件内部、共享按钮与语言菜单的字体、间距、尺寸、折行,以及样式声明顺序和优先级。必要时改为组件自有样式或更窄的区域选择器,保留明暗主题、`data-ws-part` 和路由隔离,管理页保持独立于公开皮肤。
样式需要随组件边界一并核对。[客户端样式入口](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:781)和[管理页样式入口](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:251)均使用 `scoped`,当前 CSS 分别为 1,303 与 451 行。身份弹窗已有针对组件的 `:deep` 规则;管理页当前改动将大量功能区选择器改为 `:deep`,并保留部分外壳和语言控件选择器的原作用范围。不要把这项源码变化直接等同于视觉一致:需对比子组件内部、共享按钮与语言菜单的字体、间距、尺寸、折行,以及样式声明顺序和优先级。必要时改为组件自有样式或更窄的区域选择器,保留明暗主题、`data-ws-part` 和路由隔离,管理页保持独立于公开皮肤。
测试也需跟随边界调整:[皮肤节点检查](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/services/skin-pack.test.ts:80)在当前工作区已递归读取 `components/web-client` 和 `components/admin` 下的 Vue 文件,保留公开节点契约及管理页隔离检查。[管理页状态测试](<USER_HOME>/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/test/admin-view.test.mjs:79)已改为读取父页功能模型,仍用 `render: () => null` 替换模板,不能单独证明子组件的字段与事件接线正确。后续验收必须覆盖真实渲染的表单、按钮和路由交互;这属于测试覆盖边界,不能推定测试已发现业务故障。
@@ -105,7 +105,15 @@
每个区域验收包括桌面与窄屏、五语长文案、明暗主题和自定义皮肤;对比布局、滚动、弹层遮挡及键盘操作。编译通过和源码正则匹配不能替代实际渲染检查。
### 诊断与屏幕共享展示的本批结果
### 语音成员卡片的本批结果
- `VoiceMemberCards.vue` 接收当前频道成员、发言判断与头像辅助函数,以及共享状态和动作的必要子集。共享状态引用保持稳定;停止与成员菜单事件回到父页,不复制频道、成员或媒体状态。
- 保留现有皮肤节点和样式声明顺序。20 个可见元素对比中,字体、颜色及内边距一致;观测到的元素尺寸和居中边距差异小于 1 像素,不能宣称像素完全相同。
- 模拟网关的发言消息正确更新 Alice 卡片;观看入口发出 `screenShareJoin`,目标为该成员的 `preview-share`。网关无真实共享,因此返回共享不存在的预期错误;此检查只证明目标与反馈接线。移动端卡片菜单仍对应 Alice,共享设置入口仍打开原弹窗。
- 独立受控展示页检查开始等待时出现停止按钮、停止后恢复开始入口、共享成功状态显示标记、观看/取消观看切换以及空成员提示。没有用该页面宣称实际媒体链路成功。临时页面与进程在收尾时移除。
- zh/浅色、en/深色、de/ILLUSIA、ru/浅色、ja/深色五组配对分别检查 1280×720、390×844、320×568,共 15 组;成员卡片、共享按钮和直播标记均未横向越界,应用浏览器日志无错误或警告。
- 本批一次统一验证通过 409 项测试及前后端构建。06-C 主要结构拆分已完成,触屏与原生输入框验收缺口仍在状态表;下一结构节点为 06-L 的保序格式整理。
### 此前诊断与屏幕共享展示的结果
- 三个展示组件使用父页单一控制器,诊断采样继续在原模块运行;共享设置沿用原输出参数和存储行为,补上 Tab 循环、Esc 关闭和返回入口焦点。播放器通过 `setVideoElement` 与 `setPlayerElement` 绑定真实 DOM,不把组件实例当成播放器。
- 原视频绑定仅监听流和音量,元素替换而流不变时会漏绑。现在同时监听视频元素,在渲染后绑定当前流与音量;旧元素立即清空 `srcObject`,卸载不停止其他模块拥有的媒体轨道。
@@ -203,6 +211,7 @@ Android 记录具体设备和系统,验收连接、双向语音、输入输出
| 原事项或范围 | 当前状态 |
| --- | --- |
| 06-C 语音成员卡片 | 展示提取完成,409 项测试及 15 组布局抽样通过;状态、共享入口与菜单接线已验证,媒体实测另行保留 |
| 06-C 诊断与共享展示 | 三个组件已提取;修复视频重新绑定、全屏空值判断及同昵称归属,409 项测试与 30 组布局抽样通过,真实跨端共享验收保留 |
| 06-C 工具栏与私语 | 两个展示组件已提取,修复指针归属并支持键盘按住;隐藏、失焦及释放停止,403 项测试及浏览器接线/布局检查通过 |
| 06-C 设置与密码弹窗 | 三个展示组件已提取;修复迟到设置错误及频道密码普通错误后卡等待,新增 8 项回归;398 项测试与 45 组抽样布局检查通过,真实媒体验收另行保留 |
@@ -0,0 +1,41 @@
<template>
<div v-if="currentMembers.length" class="voice-grid" data-ws-part="voice.members">
<article v-for="member in currentMembers" :key="member.id" :class="['voice-card', { speaking: isSpeaking(member), self: member.isSelf }]" data-ws-part="voice.member" :data-ws-state="member.isSelf ? 'self' : isSpeaking(member) ? 'speaking' : 'connected'" :data-ws-member-id="member.id" :data-ws-speaking="isSpeaking(member) ? 'true' : 'false'" :data-ws-self="member.isSelf ? 'true' : 'false'">
<button v-if="isMobileViewport && !member.isSelf" type="button" class="voice-member-action" :aria-label="t('moreMemberOptions')" @click.stop="emit('memberActions', member)"><Icon name="more" :size="17" /></button>
<div :class="['voice-avatar-wrap', { 'screen-share-avatar-wrap': screenShareStreamForMember(member) }]" data-ws-part="voice.member.avatar-wrap">
<div :class="['voice-avatar', { speaking: isSpeaking(member) }]" data-ws-part="voice.member.avatar" :style="avatarStyle(member.nickname, member.isSelf, member.avatar)">{{ member.avatar ? '' : avatarInitial(member.nickname) }}</div>
<span v-if="screenShareStreamForMember(member)" class="screen-share-live-indicator" data-ws-part="voice.member.live-indicator"><span class="screen-share-wave" aria-hidden="true"><i v-for="bar in screenShareIndicatorBars" :key="bar" :style="{ height: `${bar}px` }"></i></span><span>{{ t('sharingScreen') }}</span></span>
<button v-if="member.isSelf && (screenShareActive || screenShareStarting)" type="button" class="screen-share-stop-button" data-ws-part="voice.member.stop-share" :aria-label="t('stopScreenShare')" :title="t('stopScreenShare')" @click.stop="emit('stopShare')"><Icon name="close" :size="14" /></button>
</div>
<strong data-ws-part="voice.member.name">{{ member.isSelf ? t('you') : member.nickname }}</strong><span data-ws-part="voice.member.status">{{ isSpeaking(member) ? t('speaking') : member.isSelf ? t('connectedYou') : t('connected') }}</span>
<div v-if="member.isSelf || screenShareStreamForMember(member)" class="screen-share-card-actions" data-ws-part="voice.member.share-actions">
<template v-if="member.isSelf && !screenShareActive && !screenShareStarting">
<div class="screen-share-start-actions">
<button type="button" class="screen-share-card-button" @click.stop="startScreenShareWithSettings"><Icon name="monitor" :size="13" /> {{ t('startScreenShare') }}</button>
<button type="button" class="screen-share-settings-button" :aria-label="t('screenShareSettings')" :aria-expanded="screenShareSettingsOpen" :title="t('screenShareSettings')" @click.stop="screenShareSettingsOpen = !screenShareSettingsOpen"><Icon name="settings" :size="13" /></button>
</div>
</template>
<button v-else-if="!member.isSelf" type="button" :class="['screen-share-card-button', { viewing: screenShareViewingStreamId === screenShareStreamForMember(member)?.streamId }]" :data-ws-state="screenShareViewingStreamId === screenShareStreamForMember(member)?.streamId ? 'viewing' : 'idle'" @click.stop="toggleScreenShareForMember(member)"><Icon name="monitor" :size="13" /> {{ screenShareViewingStreamId === screenShareStreamForMember(member)?.streamId ? t('watching') : t('watchScreenShare') }}</button>
</div>
</article>
</div>
<div v-else class="voice-empty" data-ws-part="voice.members.empty"><span class="empty-icon"><Icon name="users" :size="20" /></span><strong>{{ t('waitingForMembers') }}</strong><span>{{ t('prepareMicrophone') }}</span></div>
</template>
<script setup lang="ts">
import Icon from "../Icon.vue";
import type { ChannelMember, useVoiceWebSocket } from "../../composables/useVoiceWebSocket.js";
import type { useWebClientScreenShare } from "../../composables/useWebClientScreenShare.js";
const props = defineProps<{
currentMembers: ChannelMember[]; isMobileViewport: boolean;
sharing: Pick<ReturnType<typeof useVoiceWebSocket>, "screenShareActive" | "screenShareStarting" | "screenShareViewingStreamId"> & Pick<ReturnType<typeof useWebClientScreenShare>, "settingsOpen">;
controls: Pick<ReturnType<typeof useWebClientScreenShare>, "streamForMember" | "toggleForMember" | "startWithSettings">;
isSpeaking: (member: ChannelMember) => boolean;
avatarStyle: (name: string, isSelf?: boolean, avatar?: string) => Record<string, string>;
avatarInitial: (name: string) => string; t: (key: string) => string;
}>();
const { screenShareActive, screenShareStarting, screenShareViewingStreamId, settingsOpen: screenShareSettingsOpen } = props.sharing;
const { streamForMember: screenShareStreamForMember, toggleForMember: toggleScreenShareForMember, startWithSettings: startScreenShareWithSettings } = props.controls;
const emit = defineEmits<{ memberActions: [member: ChannelMember]; stopShare: [] }>();
const screenShareIndicatorBars = [5, 10, 7, 12, 8, 10];
</script>
+43 -43
View File
@@ -108,12 +108,12 @@
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 18px 17px 14px; }.profile-avatar, .dock-avatar { display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 11px; font-weight: 700; }.profile-avatar { width: 38px; height: 38px; font-size: 12px; }.profile-copy { min-width: 0; flex: 1; }.profile-copy strong, .profile-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-copy strong { color: #263530; font-size: 12px; }.profile-copy span { margin-top: 4px; color: #7d8e88; font-size: 10px; }.profile-settings { display: grid; place-items: center; color: #7d8e88; background: transparent; cursor: pointer; }.profile-settings:hover { color: #006a64; }
.channel-search, :deep(.member-search) { display: flex; align-items: center; gap: 8px; color: #85928e; background: #eef3f1; border-radius: 8px; }.channel-search { margin: 0 14px 18px; padding: 0 10px; min-height: 34px; }.channel-search input, :deep(.member-search input) { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #40504b; font-size: 11px; }.channel-search input::placeholder, :deep(.member-search input::placeholder) { color: #9ba6a3; }.channel-search kbd { padding: 2px 5px; color: #9aa7a3; background: #fff; border: 1px solid #dbe4e0; border-radius: 4px; font-size: 9px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding-bottom: 14px; }.channel-section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 8px; color: #82908c; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.channel-section-title button { display: grid; place-items: center; padding: 2px; color: #87958f; background: transparent; cursor: pointer; }.channel-section-title button:hover { color: #006a64; }
.channel-entry { display: flex; align-items: center; gap: 9px; min-height: 46px; padding-right: 12px; color: #56635f; cursor: pointer; transition: .16s; }.channel-entry:hover { background: #eef5f2; }.channel-entry.selected { color: #006a64; background: #dcefeb; }.channel-entry-copy { min-width: 0; flex: 1; }.channel-entry-copy strong, .channel-entry-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.channel-entry-copy strong { font-size: 12px; font-weight: 600; }.channel-entry-copy span { margin-top: 3px; color: #93a09c; font-size: 9px; }.channel-entry.selected .channel-entry-copy span { color: #4c9690; }.channel-selected-mark { margin-left: auto; color: #006a64; }.channel-member-preview { display: flex; flex-direction: column; gap: 6px; padding: 3px 12px 8px 0; color: #74827e; font-size: 10px; }.mini-member { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mini-avatar { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; color: #fff; border-radius: 6px; font-size: 8px; font-weight: 700; }.mini-member b { margin-left: auto; color: #006a64; font-size: 9px; }.more-members { color: #006a64; font-size: 9px; }.channel-empty { margin: 5px 14px 0; padding: 19px 14px; color: #8a9793; border: 1px dashed #d3dfdb; border-radius: 10px; text-align: center; }.empty-icon { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 9px; color: #6aa9a3; background: #e2f2ef; border-radius: 10px; }.channel-empty strong { display: block; color: #5a6964; font-size: 11px; }.channel-empty p { margin: 6px 0 12px; font-size: 10px; line-height: 1.5; }.channel-empty button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: #006a64; background: #e0f3f0; border-radius: 6px; font-size: 10px; cursor: pointer; }.sidebar-divider { height: 1px; margin: 18px 14px; background: #e2e9e6; }.quick-action { display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 2px 14px; padding: 9px 5px; color: #6d7c77; background: transparent; text-align: left; cursor: pointer; }.quick-action:hover { color: #006a64; }.quick-action span { flex: 1; font-size: 11px; }.quick-action .ui-icon:last-child { color: #a6b2ae; }.sidebar-footer { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 0 16px; color: #75837e; border-top: 1px solid #e6ecea; font-size: 10px; }.footer-latency { margin-left: auto; color: #a0ada8; font-size: 9px; }
.channel-entry { display: flex; align-items: center; gap: 9px; min-height: 46px; padding-right: 12px; color: #56635f; cursor: pointer; transition: .16s; }.channel-entry:hover { background: #eef5f2; }.channel-entry.selected { color: #006a64; background: #dcefeb; }.channel-entry-copy { min-width: 0; flex: 1; }.channel-entry-copy strong, .channel-entry-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.channel-entry-copy strong { font-size: 12px; font-weight: 600; }.channel-entry-copy span { margin-top: 3px; color: #93a09c; font-size: 9px; }.channel-entry.selected .channel-entry-copy span { color: #4c9690; }.channel-selected-mark { margin-left: auto; color: #006a64; }.channel-member-preview { display: flex; flex-direction: column; gap: 6px; padding: 3px 12px 8px 0; color: #74827e; font-size: 10px; }.mini-member { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mini-avatar { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; color: #fff; border-radius: 6px; font-size: 8px; font-weight: 700; }.mini-member b { margin-left: auto; color: #006a64; font-size: 9px; }.more-members { color: #006a64; font-size: 9px; }.channel-empty { margin: 5px 14px 0; padding: 19px 14px; color: #8a9793; border: 1px dashed #d3dfdb; border-radius: 10px; text-align: center; }:deep(.empty-icon) { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 9px; color: #6aa9a3; background: #e2f2ef; border-radius: 10px; }.channel-empty strong { display: block; color: #5a6964; font-size: 11px; }.channel-empty p { margin: 6px 0 12px; font-size: 10px; line-height: 1.5; }.channel-empty button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: #006a64; background: #e0f3f0; border-radius: 6px; font-size: 10px; cursor: pointer; }.sidebar-divider { height: 1px; margin: 18px 14px; background: #e2e9e6; }.quick-action { display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 2px 14px; padding: 9px 5px; color: #6d7c77; background: transparent; text-align: left; cursor: pointer; }.quick-action:hover { color: #006a64; }.quick-action span { flex: 1; font-size: 11px; }.quick-action .ui-icon:last-child { color: #a6b2ae; }.sidebar-footer { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 0 16px; color: #75837e; border-top: 1px solid #e6ecea; font-size: 10px; }.footer-latency { margin-left: auto; color: #a0ada8; font-size: 9px; }
.workspace { display: flex; min-width: 0; flex-direction: column; background: #fff; }.workspace-header { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 0 29px; border-bottom: 1px solid #eef2f0; }.breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; color: #52605b; font-size: 12px; }.breadcrumbs strong { overflow: hidden; color: #26332f; text-overflow: ellipsis; white-space: nowrap; }.crumb-muted { color: #98a39f; }.mobile-brand { display: none; color: #006a64; font-size: 17px; font-weight: 800; letter-spacing: -.06em; }.mobile-brand em { color: #293632; font-style: normal; font-weight: 500; }.workspace-actions, .dock-actions { display: flex; align-items: center; gap: 8px; }.header-action, .dock-icon { display: grid; place-items: center; color: #75847f; background: transparent; border-radius: 8px; cursor: pointer; transition: .16s; }.header-action { width: 32px; height: 32px; }.header-action:hover, .dock-icon:hover { color: #006a64; background: #edf5f2; }.disconnect-button { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; margin-left: 8px; padding: 0 13px; color: #a94d48; background: #fff2f1; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }.disconnect-button:hover { color: #fff; background: #c95a54; }
.workspace { display: flex; min-width: 0; flex-direction: column; background: #fff; }.workspace-header { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 0 29px; border-bottom: 1px solid #eef2f0; }.breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; color: #52605b; font-size: 12px; }.breadcrumbs strong { overflow: hidden; color: #26332f; text-overflow: ellipsis; white-space: nowrap; }.crumb-muted { color: #98a39f; }.mobile-brand { display: none; color: #006a64; font-size: 17px; font-weight: 800; letter-spacing: -.06em; }.mobile-brand em { color: #293632; font-style: normal; font-weight: 500; }.workspace-actions, .dock-actions { display: flex; align-items: center; gap: 8px; }.header-action, .dock-icon { display: grid; place-items: center; color: #75847f; background: transparent; border-radius: 8px; cursor: pointer; transition: .16s; }.header-action { width: 32px; height: 32px; }.header-action:hover, .dock-icon:hover { color: #006a64; background: #edf5f2; }.workspace-language { margin-left: 3px; }.disconnect-button { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; margin-left: 8px; padding: 0 13px; color: #a94d48; background: #fff2f1; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }.disconnect-button:hover { color: #fff; background: #c95a54; }
.workspace-scroll { flex: 1; overflow-y: auto; }.workspace-content { width: min(950px, calc(100% - 64px)); margin: 0 auto; padding: 31px 0 27px; }.room-hero { position: relative; min-height: 190px; overflow: hidden; padding: 30px 34px; border-radius: 16px; background: linear-gradient(110deg, #e3f4f1, #f8fbfa 68%, #fff); }.room-hero-content { position: relative; z-index: 1; }.room-eyebrow { color: #4d817a; font-size: 10px; }.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: #2d7540; background: #d6f5d9; border-radius: 999px; font-size: 9px; letter-spacing: .08em; }.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: #56cf69; }.room-hero h1 { display: flex; align-items: center; gap: 8px; margin: 16px 0 7px; color: #18302c; font-size: 26px; letter-spacing: -.05em; }.room-hero h1 .ui-icon { color: #006a64; }.room-hero p { max-width: 470px; margin: 0; color: #64817a; font-size: 12px; line-height: 1.6; }.room-stats { display: flex; align-items: center; gap: 11px; margin-top: 19px; color: #52716b; font-size: 10px; }.room-stats span { display: inline-flex; align-items: center; gap: 5px; }.stat-divider { width: 1px; height: 13px; background: #b8d9d4; }.hero-decoration { position: absolute; border: 1px solid rgba(0,106,100,.12); border-radius: 50%; }.hero-decoration.one { width: 250px; height: 250px; right: 48px; top: -116px; }.hero-decoration.two { width: 355px; height: 355px; right: -20px; top: -168px; }.hero-visual { position: absolute; right: 85px; bottom: 20px; width: 160px; height: 120px; opacity: .75; }.orbit { position: absolute; inset: 16px 4px; border: 1px solid rgba(0,106,100,.19); border-radius: 50%; transform: rotate(28deg); }.orbit-b { inset: 0 26px; transform: rotate(-49deg); }.hero-wave { position: absolute; right: 29px; bottom: 45px; display: flex; align-items: center; gap: 4px; height: 53px; }.hero-wave i { display: block; width: 3px; min-height: 8px; border-radius: 4px; background: #63c7bf; animation: wave 2.2s ease-in-out infinite alternate; }.hero-wave i:nth-child(3n) { background: #90f691; animation-delay: -.8s; }.hero-wave i:nth-child(4n) { animation-delay: -.4s; }
:deep(.section-heading) { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.voice-section { margin-top: 34px; }:deep(.section-heading h2) { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; color: #1d2926; font-size: 20px; letter-spacing: -.04em; }:deep(.section-counter) { color: #87928e; font-size: 10px; }.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 12px; margin-top: 17px; }.voice-card { position: relative; min-height: 152px; padding: 17px 11px 13px; border: 1px solid #edf1ef; border-radius: 13px; background: #fff; box-shadow: 0 7px 18px rgba(20,58,51,.04); text-align: center; transition: .18s; }.voice-card:hover { z-index: 3; transform: translateY(-2px); box-shadow: 0 11px 24px rgba(20,58,51,.08); }.voice-card.speaking { border-color: #90f691; box-shadow: 0 0 14px rgba(144,246,145,.35); }.voice-avatar-wrap { position: relative; z-index: 3; width: 68px; margin: 0 auto 11px; }.voice-avatar { display: grid; place-items: center; width: 68px; height: 68px; color: #fff; border-radius: 50%; font-size: 20px; font-weight: 700; }.voice-status { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px; color: #78908b; background: #fff; border: 1px solid #e0eae6; border-radius: 50%; }.voice-status.speaking { color: #278c3b; border-color: #90f691; }.voice-card > strong, .voice-card > span { position: relative; z-index: 3; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.voice-card > strong { color: #2c3935; font-size: 12px; }.voice-card > span { margin-top: 5px; color: #91a09a; font-size: 10px; }.voice-card.speaking > span { color: #278c3b; }.more-card { display: grid; place-items: center; align-content: center; }.more-count { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 11px; color: #006a64; background: #e0f2ef; border-radius: 50%; font-size: 14px; font-weight: 700; }.voice-empty { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 18px; color: #83908c; border: 1px dashed #dce6e2; border-radius: 12px; font-size: 11px; }.voice-empty .empty-icon { margin: 0; width: 34px; height: 34px; }.voice-empty strong { color: #4c5e58; }.voice-empty span:last-child { margin-left: auto; }
:deep(.section-heading) { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.voice-section { margin-top: 34px; }:deep(.section-heading h2) { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; color: #1d2926; font-size: 20px; letter-spacing: -.04em; }:deep(.section-counter) { color: #87928e; font-size: 10px; }:deep(.voice-grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 12px; margin-top: 17px; }:deep(.voice-card) { position: relative; min-height: 152px; padding: 17px 11px 13px; border: 1px solid #edf1ef; border-radius: 13px; background: #fff; box-shadow: 0 7px 18px rgba(20,58,51,.04); text-align: center; transition: .18s; }:deep(.voice-card:hover) { z-index: 3; transform: translateY(-2px); box-shadow: 0 11px 24px rgba(20,58,51,.08); }:deep(.voice-card.speaking) { border-color: #90f691; box-shadow: 0 0 14px rgba(144,246,145,.35); }:deep(.voice-avatar-wrap) { position: relative; z-index: 3; width: 68px; margin: 0 auto 11px; }:deep(.voice-avatar) { display: grid; place-items: center; width: 68px; height: 68px; color: #fff; border-radius: 50%; font-size: 20px; font-weight: 700; }.voice-status { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px; color: #78908b; background: #fff; border: 1px solid #e0eae6; border-radius: 50%; }.voice-status.speaking { color: #278c3b; border-color: #90f691; }:deep(.voice-card > strong), :deep(.voice-card > span) { position: relative; z-index: 3; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }:deep(.voice-card > strong) { color: #2c3935; font-size: 12px; }:deep(.voice-card > span) { margin-top: 5px; color: #91a09a; font-size: 10px; }:deep(.voice-card.speaking > span) { color: #278c3b; }.more-card { display: grid; place-items: center; align-content: center; }.more-count { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 11px; color: #006a64; background: #e0f2ef; border-radius: 50%; font-size: 14px; font-weight: 700; }:deep(.voice-empty) { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 18px; color: #83908c; border: 1px dashed #dce6e2; border-radius: 12px; font-size: 11px; }:deep(.voice-empty .empty-icon) { margin: 0; width: 34px; height: 34px; }:deep(.voice-empty strong) { color: #4c5e58; }:deep(.voice-empty span:last-child) { margin-left: auto; }
.chat-panel { margin-top: 34px; padding: 0 clamp(14px, 1.8vw, 24px) 20px; border-top: 1px solid #eef2f0; }:deep(.chat-heading) { padding-top: 25px; }:deep(.chat-heading h2 .ui-icon) { color: #006a64; }:deep(.message-list) { display: flex; flex-direction: column; gap: 18px; min-height: 170px; max-height: 360px; overflow-y: auto; padding: 22px 8px 10px 3px; }:deep(.chat-empty) { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 145px; color: #9aa6a2; text-align: center; }:deep(.chat-empty-icon) { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 11px; color: #6fa8a2; background: #e5f3f1; border-radius: 14px; }:deep(.chat-empty strong) { color: #556761; font-size: 12px; }:deep(.chat-empty span) { margin-top: 5px; font-size: 10px; }:deep(.message-row) { display: flex; align-items: flex-start; gap: 11px; max-width: 78%; }:deep(.message-row.mine) { align-self: flex-end; flex-direction: row-reverse; }:deep(.message-avatar) { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; }:deep(.message-body) { min-width: 0; }:deep(.message-meta) { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 6px; }:deep(.message-row.mine .message-meta) { justify-content: flex-end; }:deep(.message-meta strong) { color: #384843; font-size: 11px; }:deep(.message-meta time) { color: #a1ada9; font-size: 9px; }:deep(.message-bubble) { padding: 10px 13px; color: #43534e; background: #f1f5f3; border-radius: 4px 13px 13px 13px; font-size: 12px; line-height: 1.55; }:deep(.message-row.mine .message-bubble) { color: #fff; background: #006a64; border-radius: 13px 4px 13px 13px; }:deep(.message-composer) { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 6px 8px 6px 12px; background: #f3f6f5; border-radius: 11px; }:deep(.message-composer input) { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #3a4944; font-size: 12px; }:deep(.message-composer input::placeholder) { color: #9aa6a2; }.composer-tool { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; color: #94a19d; background: transparent; border-radius: 7px; }.composer-tool:not(:disabled) { cursor: pointer; }.composer-tool:disabled { opacity: .6; }:deep(.send-button) { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #fff; background: #006a64; border-radius: 9px; cursor: pointer; }:deep(.send-button:disabled) { cursor: not-allowed; opacity: .35; }
.control-dock { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 10px 29px; border-top: 1px solid #e9efec; background: rgba(255,255,255,.94); box-shadow: 0 -5px 18px rgba(23,52,47,.03); }.dock-user { display: flex; align-items: center; gap: 9px; min-width: 140px; }.dock-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }.dock-user strong, .dock-user span { display: block; }.dock-user strong { max-width: 125px; overflow: hidden; color: #33423d; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.dock-user span { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #7e8d87; font-size: 9px; }.dock-user span i { width: 5px; height: 5px; border-radius: 50%; background: #65d879; }.dock-center { display: flex; align-items: center; gap: 14px; }.mic-mode-switch { display: flex; padding: 3px; background: #eef3f1; border-radius: 8px; }.mic-mode-switch button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; color: #8b9894; background: transparent; border-radius: 6px; font-size: 10px; cursor: pointer; }.mic-mode-switch button.active { color: #006a64; background: #fff; box-shadow: 0 2px 5px rgba(21,54,48,.08); font-weight: 700; }.ptt-indicator { display: inline-flex; align-items: center; gap: 7px; color: #7c8b86; font-size: 10px; }.ptt-indicator span { width: 7px; height: 7px; border-radius: 50%; background: #b2bfbb; }.ptt-indicator.active { color: #278c3b; }.ptt-indicator.active span { background: #65d879; box-shadow: 0 0 0 4px rgba(101,216,121,.15); }.dock-actions { min-width: 140px; justify-content: flex-end; }.dock-icon { width: 34px; height: 34px; }.dock-end { display: grid; place-items: center; width: 37px; height: 37px; color: #fff; background: #c95a54; border-radius: 10px; cursor: pointer; }.dock-end:hover { background: #b84c47; }
@@ -170,8 +170,8 @@
@media (max-width: 1200px) { .app-shell { grid-template-columns: 72px 255px minmax(0, 1fr) 218px; }.workspace-content { width: min(900px, calc(100% - 42px)); }.control-dock { padding-inline: 18px; }.dock-center { gap: 8px; }.mic-mode-switch button { padding-inline: 7px; }:deep(.member-panel) { padding-inline: 12px; }:deep(.member-volume) { display: none; } }
@media (max-width: 980px) { .app-shell { grid-template-columns: 70px 245px minmax(0, 1fr); }:deep(.member-panel) { display: none; }.room-hero { min-height: 180px; }.hero-visual { right: 24px; opacity: .55; }.join-content { gap: 40px; }.join-card { padding: 28px; } }
@media (max-width: 740px) { .join-header, .join-content, .join-footer { width: min(100% - 32px, 560px); }.join-header { min-height: 70px; }:deep(.header-note) { display: none; }.join-content { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 35px; padding: 36px 0 48px; }.join-copy h1 { margin-top: 15px; font-size: 45px; }.join-description { font-size: 14px; }.promise-list { gap: 13px; margin-top: 27px; }.promise-item { min-width: 0; flex: 1 1 30%; }.promise-item small { display: none; }.visitor-count { margin-top: 24px; }.join-card { padding: 24px 20px; }.join-footer { min-height: 53px; }.join-footer .footer-spacer { display: none; }.join-footer span:last-child { margin-left: auto; }:deep(.field-grid) { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }.app-shell { display: block; height: 100dvh; }.nav-rail, .channel-sidebar, :deep(.member-panel) { display: none; }.workspace { height: 100%; }.workspace-header { min-height: 61px; padding: 0 15px; }.mobile-brand { display: inline; }.crumb-muted, .breadcrumbs > .ui-icon, .breadcrumbs > strong { display: none; }.workspace-actions { gap: 3px; }.disconnect-button { margin-left: 2px; padding-inline: 9px; }.disconnect-button .ui-icon { display: none; }.workspace-content { width: calc(100% - 30px); padding-top: 18px; }.room-hero { min-height: 182px; padding: 23px 21px; }.room-hero h1 { font-size: 22px; }.room-hero p { max-width: 74%; font-size: 11px; }.hero-visual { right: -15px; bottom: 4px; transform: scale(.75); transform-origin: right bottom; }.voice-section, .chat-panel { margin-top: 25px; }.voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.voice-card { min-height: 143px; }:deep(.message-row) { max-width: 92%; }.control-dock { min-height: 66px; padding: 8px 15px; }.dock-user { min-width: 0; }.dock-user > div:last-child { display: none; }.dock-center { flex: 1; justify-content: center; }.mic-mode-switch button { padding: 6px 7px; font-size: 9px; }.ptt-indicator { display: none; }.dock-actions { min-width: 75px; }:deep(.settings-modal) { max-height: calc(100dvh - 28px); }.settings-nav { display: none; }:deep(.settings-content) { padding: 24px 20px; }:deep(.settings-header) { min-height: 62px; padding-inline: 20px; }:deep(.settings-header h2) { font-size: 19px; }:deep(.settings-footer) { min-height: 61px; padding-inline: 20px; } }
@media (max-width: 420px) { .join-copy h1 { font-size: 38px; }.promise-list { display: grid; grid-template-columns: 1fr; }.promise-item small { display: block; }.join-card { border-radius: 15px; }.voice-grid { gap: 8px; }.voice-card { padding-inline: 6px; }:deep(.section-counter) { display: none; }.workspace-actions .header-action:first-child { display: none; }.dock-icon { display: none; }.dock-actions { min-width: 37px; }.room-stats { gap: 6px; }.room-stats span:last-child, .stat-divider { display: none; } }
@media (max-width: 740px) { .join-header, .join-content, .join-footer { width: min(100% - 32px, 560px); }.join-header { min-height: 70px; }:deep(.header-note) { display: none; }.join-content { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 35px; padding: 36px 0 48px; }.join-copy h1 { margin-top: 15px; font-size: 45px; }.join-description { font-size: 14px; }.promise-list { gap: 13px; margin-top: 27px; }.promise-item { min-width: 0; flex: 1 1 30%; }.promise-item small { display: none; }.visitor-count { margin-top: 24px; }.join-card { padding: 24px 20px; }.join-footer { min-height: 53px; }.join-footer .footer-spacer { display: none; }.join-footer span:last-child { margin-left: auto; }:deep(.field-grid) { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }.app-shell { display: block; height: 100dvh; }.nav-rail, .channel-sidebar, :deep(.member-panel) { display: none; }.workspace { height: 100%; }.workspace-header { min-height: 61px; padding: 0 15px; }.mobile-brand { display: inline; }.crumb-muted, .breadcrumbs > .ui-icon, .breadcrumbs > strong { display: none; }.workspace-actions { gap: 3px; }.disconnect-button { margin-left: 2px; padding-inline: 9px; }.disconnect-button .ui-icon { display: none; }.workspace-content { width: calc(100% - 30px); padding-top: 18px; }.room-hero { min-height: 182px; padding: 23px 21px; }.room-hero h1 { font-size: 22px; }.room-hero p { max-width: 74%; font-size: 11px; }.hero-visual { right: -15px; bottom: 4px; transform: scale(.75); transform-origin: right bottom; }.voice-section, .chat-panel { margin-top: 25px; }:deep(.voice-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }:deep(.voice-card) { min-height: 143px; }:deep(.message-row) { max-width: 92%; }.control-dock { min-height: 66px; padding: 8px 15px; }.dock-user { min-width: 0; }.dock-user > div:last-child { display: none; }.dock-center { flex: 1; justify-content: center; }.mic-mode-switch button { padding: 6px 7px; font-size: 9px; }.ptt-indicator { display: none; }.dock-actions { min-width: 75px; }:deep(.settings-modal) { max-height: calc(100dvh - 28px); }.settings-nav { display: none; }:deep(.settings-content) { padding: 24px 20px; }:deep(.settings-header) { min-height: 62px; padding-inline: 20px; }:deep(.settings-header h2) { font-size: 19px; }:deep(.settings-footer) { min-height: 61px; padding-inline: 20px; } }
@media (max-width: 420px) { .join-copy h1 { font-size: 38px; }.promise-list { display: grid; grid-template-columns: 1fr; }.promise-item small { display: block; }.join-card { border-radius: 15px; }:deep(.voice-grid) { gap: 8px; }:deep(.voice-card) { padding-inline: 6px; }:deep(.section-counter) { display: none; }.workspace-actions .header-action:first-child { display: none; }.dock-icon { display: none; }.dock-actions { min-width: 37px; }.room-stats { gap: 6px; }.room-stats span:last-child, .stat-divider { display: none; } }
@media (max-width: 740px) {
.join-footer { width: 100%; padding-inline: 16px; }
@@ -183,14 +183,14 @@
}
@media (min-width: 741px) {
.app-shell .voice-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
:deep(.app-shell .voice-grid) { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
.screen-share-card-button { min-height: 28px; font-size: 10px; }
.screen-share-settings-button { width: 28px; min-width: 28px; min-height: 28px; }
:deep(.screen-share-card-button) { min-height: 28px; font-size: 10px; }
:deep(.screen-share-settings-button) { width: 28px; min-width: 28px; min-height: 28px; }
@media (max-width: 740px) {
.screen-share-card-button { font-size: 9px; }
:deep(.screen-share-card-button) { font-size: 9px; }
}
/* The connected view keeps only controls that have a working action. The
@@ -289,10 +289,10 @@
.app-shell .room-stats { font-size: 12.5px; }
:deep(.app-shell .section-kicker), :deep(.app-shell .section-counter) { font-size: 12.5px; }
:deep(.app-shell .section-heading h2) { font-size: 25px; }
.app-shell .voice-card > strong { font-size: 15px; }
.app-shell .voice-card > span { font-size: 12.5px; }
:deep(.app-shell .voice-card > strong) { font-size: 15px; }
:deep(.app-shell .voice-card > span) { font-size: 12.5px; }
.app-shell .more-count { font-size: 17.5px; }
.app-shell .voice-empty { font-size: 13.75px; }
:deep(.app-shell .voice-empty) { font-size: 13.75px; }
:deep(.app-shell .chat-empty strong) { font-size: 15px; }
:deep(.app-shell .chat-empty span) { font-size: 12.5px; }
:deep(.app-shell .message-meta strong) { font-size: 13.75px; }
@@ -349,7 +349,7 @@
.workspace { grid-column: 2; grid-row: 1; min-height: 0; height: 100%; }
.workspace-scroll { min-height: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
:deep(.member-panel) { grid-column: 1; grid-row: 1; border-right: 1px solid #eef2f0; border-left: 0; }
.voice-avatar.speaking { box-shadow: 0 0 0 3px #90f691, 0 0 14px rgba(144,246,145,.48); }
:deep(.voice-avatar.speaking) { box-shadow: 0 0 0 3px #90f691, 0 0 14px rgba(144,246,145,.48); }
.chat-panel { min-height: 0; }
:deep(.message-list) { min-height: clamp(150px, 20dvh, 220px); max-height: min(360px, 42dvh); }
.workspace-content { padding-bottom: 64px; }
@@ -560,7 +560,7 @@
/* Mobile interaction pass: keep the browser viewport fixed and give each
mobile surface its own touch-friendly scroll area. */
.mobile-voice-controls, .voice-member-action, :deep(.member-action-button), :deep(.member-menu-backdrop) { display: none; }
.mobile-voice-controls, :deep(.voice-member-action), :deep(.member-action-button), :deep(.member-menu-backdrop) { display: none; }
.microphone-header-toggle.muted { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
:deep(.microphone-control) { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
:deep(.microphone-control .settings-label) { margin-bottom: 4px; }
@@ -595,16 +595,16 @@
.voice-section { margin-top: 21px; }
:deep(.section-heading) { gap: 10px; }
:deep(.section-heading h2) { font-size: 22px; }
.voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.voice-card { position: relative; min-height: 136px; padding: 18px 8px 14px; border-radius: 16px; }
.voice-avatar-wrap, .voice-avatar { width: 60px; height: 60px; }
.voice-avatar-wrap { margin-bottom: 10px; }
.voice-avatar { font-size: 18px; }
:deep(.voice-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
:deep(.voice-card) { position: relative; min-height: 136px; padding: 18px 8px 14px; border-radius: 16px; }
:deep(.voice-avatar-wrap), :deep(.voice-avatar) { width: 60px; height: 60px; }
:deep(.voice-avatar-wrap) { margin-bottom: 10px; }
:deep(.voice-avatar) { font-size: 18px; }
.voice-status { width: 21px; height: 21px; }
.app-shell .voice-card > strong { max-width: 100%; font-size: 14px; }
.app-shell .voice-card > span { margin-top: 4px; font-size: 11px; }
.voice-member-action { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--text-muted); background: color-mix(in srgb, var(--surface-2) 78%, transparent); border-radius: 10px; cursor: pointer; }
.voice-member-action:hover, .voice-member-action:active { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); }
:deep(.app-shell .voice-card > strong) { max-width: 100%; font-size: 14px; }
:deep(.app-shell .voice-card > span) { margin-top: 4px; font-size: 11px; }
:deep(.voice-member-action) { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--text-muted); background: color-mix(in srgb, var(--surface-2) 78%, transparent); border-radius: 10px; cursor: pointer; }
:deep(.voice-member-action:hover), :deep(.voice-member-action:active) { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); }
.mobile-voice-controls { display: flex; align-items: stretch; gap: 8px; margin-top: 14px; padding: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.mobile-voice-toggle, .mobile-voice-settings { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 0; padding: 0 11px; color: var(--accent); background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.mobile-voice-toggle { flex: 1 1 auto; }
@@ -955,25 +955,25 @@
}
.screen-share-inline-error { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; padding: 8px 10px; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border)); border-radius: 9px; background: color-mix(in srgb, var(--danger) 12%, var(--surface-1)); font-size: 10px; line-height: 1.4; }
.screen-share-avatar-wrap { position: relative; overflow: visible; }
.screen-share-live-indicator { position: absolute; top: -16px; right: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 17px; padding: 3px 6px 3px 4px; color: #087b6e; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 999px; background: var(--surface-1); box-shadow: 0 4px 12px color-mix(in srgb, var(--text-primary) 12%, transparent); font-size: 8px; font-weight: 800; line-height: 1; white-space: nowrap; transform: translateX(50%); }
.screen-share-live-indicator::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #55d783; box-shadow: 0 0 0 3px color-mix(in srgb, #55d783 18%, transparent); animation: screen-share-live-dot 1.2s ease-in-out infinite; }
.screen-share-wave { display: inline-flex; align-items: center; gap: 1px; height: 14px; color: #55d3bd; }
.screen-share-wave i { display: block; width: 2px; flex: 0 0 2px; border-radius: 99px; background: currentColor; animation: screen-share-wave 1.1s ease-in-out infinite alternate; }
.screen-share-wave i:nth-child(2n) { animation-delay: -.18s; }
.screen-share-wave i:nth-child(3n) { animation-delay: -.42s; }
.screen-share-wave i:nth-child(4n) { animation-delay: -.66s; }
.screen-share-stop-button { position: absolute; bottom: -4px; left: -5px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--danger); border: 2px solid var(--surface-1); border-radius: 7px; background: var(--surface-2); box-shadow: 0 3px 9px color-mix(in srgb, var(--text-primary) 18%, transparent); cursor: pointer; }
.screen-share-stop-button:hover { color: #fff; border-color: var(--danger); background: var(--danger); }
.screen-share-stop-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--danger) 42%, transparent); outline-offset: 2px; }
.screen-share-card-actions { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-width: 0; margin-top: 9px; flex-wrap: wrap; }
.screen-share-start-actions { display: inline-flex; align-items: stretch; justify-content: center; gap: 4px; width: 100%; min-width: 0; }
.screen-share-card-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 25px; max-width: 100%; padding: 4px 7px; overflow: hidden; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 999px; background: color-mix(in srgb, var(--accent) 8%, var(--surface-1)); font-size: 9px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.screen-share-card-button:hover { background: color-mix(in srgb, var(--accent) 15%, var(--surface-1)); }
.screen-share-card-button.live { color: #0e8c76; background: color-mix(in srgb, #b6f0d5 55%, var(--surface-1)); }
.screen-share-card-button.viewing { color: #fff; border-color: var(--accent); background: var(--accent); }
.screen-share-settings-button { display: grid; place-items: center; width: 25px; min-width: 25px; min-height: 25px; padding: 0; color: var(--text-muted); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-1); cursor: pointer; }
.screen-share-settings-button:hover, .screen-share-settings-button[aria-expanded="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--surface-1)); }
:deep(.screen-share-avatar-wrap) { position: relative; overflow: visible; }
:deep(.screen-share-live-indicator) { position: absolute; top: -16px; right: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 17px; padding: 3px 6px 3px 4px; color: #087b6e; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 999px; background: var(--surface-1); box-shadow: 0 4px 12px color-mix(in srgb, var(--text-primary) 12%, transparent); font-size: 8px; font-weight: 800; line-height: 1; white-space: nowrap; transform: translateX(50%); }
:deep(.screen-share-live-indicator::before) { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #55d783; box-shadow: 0 0 0 3px color-mix(in srgb, #55d783 18%, transparent); animation: screen-share-live-dot 1.2s ease-in-out infinite; }
:deep(.screen-share-wave) { display: inline-flex; align-items: center; gap: 1px; height: 14px; color: #55d3bd; }
:deep(.screen-share-wave i) { display: block; width: 2px; flex: 0 0 2px; border-radius: 99px; background: currentColor; animation: screen-share-wave 1.1s ease-in-out infinite alternate; }
:deep(.screen-share-wave i:nth-child(2n)) { animation-delay: -.18s; }
:deep(.screen-share-wave i:nth-child(3n)) { animation-delay: -.42s; }
:deep(.screen-share-wave i:nth-child(4n)) { animation-delay: -.66s; }
:deep(.screen-share-stop-button) { position: absolute; bottom: -4px; left: -5px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--danger); border: 2px solid var(--surface-1); border-radius: 7px; background: var(--surface-2); box-shadow: 0 3px 9px color-mix(in srgb, var(--text-primary) 18%, transparent); cursor: pointer; }
:deep(.screen-share-stop-button:hover) { color: #fff; border-color: var(--danger); background: var(--danger); }
:deep(.screen-share-stop-button:focus-visible) { outline: 3px solid color-mix(in srgb, var(--danger) 42%, transparent); outline-offset: 2px; }
:deep(.screen-share-card-actions) { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-width: 0; margin-top: 9px; flex-wrap: wrap; }
:deep(.screen-share-start-actions) { display: inline-flex; align-items: stretch; justify-content: center; gap: 4px; width: 100%; min-width: 0; }
:deep(.screen-share-card-button) { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 25px; max-width: 100%; padding: 4px 7px; overflow: hidden; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 999px; background: color-mix(in srgb, var(--accent) 8%, var(--surface-1)); font-size: 9px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
:deep(.screen-share-card-button:hover) { background: color-mix(in srgb, var(--accent) 15%, var(--surface-1)); }
:deep(.screen-share-card-button.live) { color: #0e8c76; background: color-mix(in srgb, #b6f0d5 55%, var(--surface-1)); }
:deep(.screen-share-card-button.viewing) { color: #fff; border-color: var(--accent); background: var(--accent); }
:deep(.screen-share-settings-button) { display: grid; place-items: center; width: 25px; min-width: 25px; min-height: 25px; padding: 0; color: var(--text-muted); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-1); cursor: pointer; }
:deep(.screen-share-settings-button:hover), :deep(.screen-share-settings-button[aria-expanded="true"]) { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--surface-1)); }
:deep(.screen-share-settings-backdrop) { z-index: 25; align-items: center; padding: 16px; }
:deep(.screen-share-settings-modal) { position: relative; width: min(360px, 100%); padding: 22px; color: var(--text-primary); border: 1px solid var(--border); border-radius: 16px; background: var(--surface-1); box-shadow: 0 20px 60px color-mix(in srgb, var(--text-primary) 20%, transparent); }
:deep(.screen-share-settings-close) { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: var(--text-muted); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); cursor: pointer; }
@@ -1015,8 +1015,8 @@
@keyframes screen-share-wave { 0% { transform: scaleY(.45); opacity: .5; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes screen-share-live-dot { 0%, 100% { opacity: .55; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
@media (max-width: 740px) {
.screen-share-live-indicator { top: -14px; font-size: 7px; }
.screen-share-card-button { font-size: 8px; }
:deep(.screen-share-live-indicator) { top: -14px; font-size: 7px; }
:deep(.screen-share-card-button) { font-size: 8px; }
:deep(.screen-share-player) { margin-top: 14px; border-radius: 14px; }
:deep(.screen-share-player-stage) { min-height: 210px; }
:deep(.screen-share-player-viewers) { top: 10px; right: 10px; }
+7 -23
View File
@@ -119,27 +119,10 @@
<ScreenSharePlayer v-if="screenShareViewing" :model="screenShareControls"
:screen-share-remote-stream="screenShareRemoteStream" :screen-share-remote-volume="screenShareRemoteVolume"
:screen-share-error="screenShareError" :leave-screen-share="leaveScreenShare" :avatar-initial="avatarInitial" :t="t" />
<div v-if="currentMembers.length" class="voice-grid" data-ws-part="voice.members">
<article v-for="member in currentMembers" :key="member.id" :class="['voice-card', { speaking: isSpeaking(member), self: member.isSelf }]" data-ws-part="voice.member" :data-ws-state="member.isSelf ? 'self' : isSpeaking(member) ? 'speaking' : 'connected'" :data-ws-member-id="member.id" :data-ws-speaking="isSpeaking(member) ? 'true' : 'false'" :data-ws-self="member.isSelf ? 'true' : 'false'">
<button v-if="isMobileViewport && !member.isSelf" type="button" class="voice-member-action" :aria-label="t('moreMemberOptions')" @click.stop="openMemberActions(member)"><Icon name="more" :size="17" /></button>
<div :class="['voice-avatar-wrap', { 'screen-share-avatar-wrap': screenShareStreamForMember(member) }]" data-ws-part="voice.member.avatar-wrap">
<div :class="['voice-avatar', { speaking: isSpeaking(member) }]" data-ws-part="voice.member.avatar" :style="avatarStyle(member.nickname, member.isSelf, member.avatar)">{{ member.avatar ? '' : avatarInitial(member.nickname) }}</div>
<span v-if="screenShareStreamForMember(member)" class="screen-share-live-indicator" data-ws-part="voice.member.live-indicator"><span class="screen-share-wave" aria-hidden="true"><i v-for="bar in screenShareIndicatorBars" :key="bar" :style="{ height: `${bar}px` }"></i></span><span>{{ t('sharingScreen') }}</span></span>
<button v-if="member.isSelf && (screenShareActive || screenShareStarting)" type="button" class="screen-share-stop-button" data-ws-part="voice.member.stop-share" :aria-label="t('stopScreenShare')" :title="t('stopScreenShare')" @click.stop="stopScreenShare"><Icon name="close" :size="14" /></button>
</div>
<strong data-ws-part="voice.member.name">{{ member.isSelf ? t('you') : member.nickname }}</strong><span data-ws-part="voice.member.status">{{ isSpeaking(member) ? t('speaking') : member.isSelf ? t('connectedYou') : t('connected') }}</span>
<div v-if="member.isSelf || screenShareStreamForMember(member)" class="screen-share-card-actions" data-ws-part="voice.member.share-actions">
<template v-if="member.isSelf && !screenShareActive && !screenShareStarting">
<div class="screen-share-start-actions">
<button type="button" class="screen-share-card-button" @click.stop="startScreenShareWithSettings"><Icon name="monitor" :size="13" /> {{ t('startScreenShare') }}</button>
<button type="button" class="screen-share-settings-button" :aria-label="t('screenShareSettings')" :aria-expanded="screenShareSettingsOpen" :title="t('screenShareSettings')" @click.stop="screenShareSettingsOpen = !screenShareSettingsOpen"><Icon name="settings" :size="13" /></button>
</div>
</template>
<button v-else-if="!member.isSelf" type="button" :class="['screen-share-card-button', { viewing: screenShareViewingStreamId === screenShareStreamForMember(member)?.streamId }]" :data-ws-state="screenShareViewingStreamId === screenShareStreamForMember(member)?.streamId ? 'viewing' : 'idle'" @click.stop="toggleScreenShareForMember(member)"><Icon name="monitor" :size="13" /> {{ screenShareViewingStreamId === screenShareStreamForMember(member)?.streamId ? t('watching') : t('watchScreenShare') }}</button>
</div>
</article>
</div>
<div v-else class="voice-empty" data-ws-part="voice.members.empty"><span class="empty-icon"><Icon name="users" :size="20" /></span><strong>{{ t('waitingForMembers') }}</strong><span>{{ t('prepareMicrophone') }}</span></div>
<VoiceMemberCards :current-members="currentMembers" :is-mobile-viewport="isMobileViewport"
:sharing="memberSharingState" :controls="screenShareControls" :is-speaking="isSpeaking"
:avatar-style="avatarStyle" :avatar-initial="avatarInitial" :t="t"
@member-actions="openMemberActions" @stop-share="stopScreenShare" />
<WhisperControls v-if="whisperTargetIds.size" :targets="whisperTargets" :active="whisperActive"
:enabled="!isMobileViewport || mobileSection === 'voice'" :controls="audioControls" :t="t" @clear="clearWhisperTargets" />
<div class="mobile-voice-controls">
@@ -210,6 +193,7 @@
<script setup lang="ts">
import { computed, onMounted, onUnmounted, reactive, ref, shallowRef, watch } from "vue";
import Icon from "../components/Icon.vue";
import VoiceMemberCards from "../components/web-client/VoiceMemberCards.vue";
import VoicePerformancePanel from "../components/web-client/VoicePerformancePanel.vue";
import ScreenShareSettingsDialog from "../components/web-client/ScreenShareSettingsDialog.vue";
import ScreenSharePlayer from "../components/web-client/ScreenSharePlayer.vue";
@@ -504,7 +488,6 @@ function persistLanguage() {
void saveLocalPreferences({ schemaVersion: 1, language: language.value });
}
const screenShareIndicatorBars = [5, 10, 7, 12, 8, 10];
const screenShareControls = useWebClientScreenShare({
streams: screenShareStreams,
viewing: screenShareViewing,
@@ -520,7 +503,8 @@ const screenShareControls = useWebClientScreenShare({
avatarStyle,
t,
});
const { settingsOpen: screenShareSettingsOpen, errorText: screenShareErrorText, streamForMember: screenShareStreamForMember, toggleForMember: toggleScreenShareForMember, startWithSettings: startScreenShareWithSettings } = screenShareControls;
const { settingsOpen: screenShareSettingsOpen, errorText: screenShareErrorText } = screenShareControls;
const memberSharingState = { screenShareActive, screenShareStarting, screenShareViewingStreamId, settingsOpen: screenShareSettingsOpen };
const {
channelTree,
currentChannel,