From 83b2430d18be59696c395e87788c93e79c7f067c Mon Sep 17 00:00:00 2001 From: illusia <64828020+EchoSixHIYA@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:19:24 +0800 Subject: [PATCH] refactor: extract member panels and constrain action menus --- CLAUDE.md | 2 + docs/CODE_REFACTOR_PLAN.zh-CN.md | 36 ++-- package.json | 2 +- .../web-client/ChannelMemberPanel.vue | 92 ++++++++ .../web-client/MemberActionsMenu.vue | 120 +++++++++++ .../services/member-menu-placement.test.ts | 25 +++ web/src/services/member-menu-placement.ts | 18 ++ web/src/services/skin-pack.test.ts | 2 +- web/src/styles/web-client.css | 202 +++++++++--------- web/src/views/WebClient.vue | 94 ++------ 10 files changed, 397 insertions(+), 196 deletions(-) create mode 100644 web/src/components/web-client/ChannelMemberPanel.vue create mode 100644 web/src/components/web-client/MemberActionsMenu.vue create mode 100644 web/src/services/member-menu-placement.test.ts create mode 100644 web/src/services/member-menu-placement.ts diff --git a/CLAUDE.md b/CLAUDE.md index 4b90adc..f8eee7d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -183,6 +183,8 @@ The identity dialog retains page-owned CSS with narrowly targeted `:deep` select The public join form uses explicit named field models and emits page actions. The chat panel receives a presentation subset of the single page-owned chat controller; keep its list ref bound to the rendered scroller so tab changes and new messages retain automatic scrolling. Form grid columns must allow shrinking, and narrow identity/relay controls must wrap without clipping translated text. +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. + Admin presentation components receive stable feature controllers; do not instantiate duplicate controllers in children. The welcome-language model remains page-owned and the skin file input belongs to its presentation component. Feature CSS crosses these boundaries with `:deep`, while shell and language-control selectors retain their existing scope. On narrow screens the brand and logout occupy the first row and all four navigation links share a separate row with at least 44 px high targets. Keep each repair batch tied to its current plan item. Combine related fixes before running the full verification command; use focused checks during diagnosis and repeat the full suite only when subsequent changes or failures warrant it. diff --git a/docs/CODE_REFACTOR_PLAN.zh-CN.md b/docs/CODE_REFACTOR_PLAN.zh-CN.md index 586d0b2..494fb84 100644 --- a/docs/CODE_REFACTOR_PLAN.zh-CN.md +++ b/docs/CODE_REFACTOR_PLAN.zh-CN.md @@ -1,18 +1,18 @@ # WebSpeak 代码待修改清单与修改方向 -本文聚焦 `webspeak-webclient`,记录当前代码结构、待修改项、大致修改方向与验收条件。本批提取加入表单与聊天面板,并修复加入表单长文案在窄屏撑宽的问题;统一验证通过 385 项测试及前后端构建,后续样式修复通过前端构建及 11 项皮肤检查。待办分为结构整理、已有改动验收和真实环境验证;缺少验证证据的事项不直接认定为代码故障。 +本文聚焦 `webspeak-webclient`,记录当前代码结构、待修改项、大致修改方向与验收条件。本批提取频道成员面板与成员菜单,修复移动端悬停导致误调度、短窗口菜单越界的问题;最终统一验证通过 390 项测试及前后端构建。待办分为结构整理、已有改动验收和真实环境验证;缺少验证证据的事项不直接认定为代码故障。 -按用户要求,每批仅处理当前节点相关问题,合并相关修复后统一验证,不扩展到无关模块。管理页主要交互与布局已检查,原生确认框阻塞的操作验收单独保留。加入表单与聊天面板已拆分;后续处理频道成员、音频设置等区域,样式格式整理单独进行。真实消息兼容、TeamSpeak 媒体、Android 真机及发布复现独立跟踪,可提前安排。媒体、连接、命令、诊断、消息、身份及公共皮肤状态已有独立模块,继续复用。当前待办和实施方向放在前部,历史修复及验证记录保留在后部。 +按用户要求,每批仅处理当前节点相关问题,合并相关修复后统一验证,不扩展到无关模块。管理页主要交互与布局已检查,原生确认框阻塞的操作验收单独保留。加入、聊天、频道成员和成员菜单已拆分;后续处理音频设置及密码弹窗,样式格式整理单独进行。真实消息兼容、TeamSpeak 媒体、Android 真机及发布复现独立跟踪,可提前安排。媒体、连接、命令、诊断、消息、身份及公共皮肤状态已有独立模块,继续复用。当前待办和实施方向放在前部,历史修复及验证记录保留在后部。 ## 范围与依据 - 记录日期:2026 年 10 月 1 日。 -- 当前记录基线:`dev` 分支,`0f39fc75513d39a15b3f6b28ee806888f8b58010`;应用版本 `0.2.5-preview`。以下现状包含当前工作区,不能全部归为该提交的内容。 -- 本批仅处理 06-C 的加入表单、聊天面板、所属样式和相应测试定位;状态控制器、协议、媒体、数据库和依赖未变。 -- 两个组件合并验证:首次 `npm run verify` 有两项源码检查仍指向旧模板或旧选择器,更新检查位置后全量重跑,385 项测试及前后端构建通过。浏览器随后发现表单窄屏问题,集中调整样式后只补跑前端构建和 11 项皮肤检查,均通过。 +- 当前记录基线:`dev` 分支,`1f5e7cc6ff810c14dd453d27ea6057932d98cf58`;应用版本 `0.2.5-preview`。以下现状包含当前工作区,不能全部归为该提交的内容。 +- 本批仅处理 06-C 的频道成员面板、成员菜单、定位及所属样式。成员业务状态仍由父页单一控制器拥有;协议、媒体、数据库和依赖未变。 +- 两个展示组件合并验证通过 385 项测试及前后端构建。浏览器随后复现菜单问题;相关定位和交互修复集中完成后,新增 5 项定位回归测试,最终 `npm run verify` 通过 390 项测试、后端编译及前端类型检查和生产构建。 - 既有皮肤修复记录记载新增 23 项测试,以及 `npm run verify` 通过 385 项测试和前后端构建;其中 5 项先复现旧结果覆盖及失效归属问题。这些是此前批次的验证结果,不是本轮重新执行的结果。 -- 本批浏览器使用实际前端及 HTTP/WebSocket 桥接、模拟 TeamSpeak 客户端和受控加入凭证响应。表单与聊天各完成五语、三皮肤、320/390/1280 像素共 45 组 DOM 边界检查;主要交互见下节。模拟服务结果不能证明真实 TeamSpeak 消息或媒体兼容。管理页此前的 80 组检查保留在验收记录。 -- 管理批次基线 `0f39fc7` 的 CI 与 Docker 健康检查已确认成功(运行 36843893787);本批客户端改动需使用自己的提交核对远端结果。 +- 本批浏览器使用实际前端及 HTTP/WebSocket 桥接、模拟 TeamSpeak 客户端,覆盖搜索、频道切换、成员调度、私聊、私语目标、音量和桌面指针拖动;五语、三皮肤、三种窗口尺寸共 45 组边界检查通过。模拟服务结果不能证明生产权限、真实 TeamSpeak 或触屏兼容。此前表单/聊天及管理页的检查保留在各自记录。 +- 上批 `1f5e7cc` 的 CI 与 Docker 健康检查已确认成功(运行 36846402608);本批成员改动需使用自己的提交核对远端结果。 - 下文“代码可确认”指控制流或配置可直接支持的判断;具体故障发生条件仍需回归用例验证。“待验收”表示证据尚缺,不等于已发生故障。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/` | 主页面 983 行,管理页 251 行;聊天 composable 管理按会话和对象隔离的草稿、发送等待及反馈 | +| 页面与业务状态 | `web/src/views/`、`web/src/composables/` | 主页面 917 行,管理页 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,21 +80,21 @@ ### 06-C 页面组件 -当前依据:[WebClient.vue](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:1) 有 983 行,加入表单、聊天面板与身份导入已独立;父页仍承载语音活动、频道成员、音频控制和多个弹窗。[AdminView.vue](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:41) 已由 400 行减至 251 行,三个管理模板迁移到独立组件。管理页剩余浏览器验收缺口见前表,客户端继续明确展示边界;不以文件长度推定运行故障。 +当前依据:[WebClient.vue](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:1) 有 917 行,加入表单、聊天面板、频道成员、成员菜单与身份导入已独立;父页仍承载语音活动、音频控制和多个弹窗。[AdminView.vue](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:41) 已由 400 行减至 251 行,三个管理模板迁移到独立组件。管理页剩余浏览器验收缺口见前表,客户端继续明确展示边界;不以文件长度推定运行故障。 以下名称为建议,实施时按实际接口确定。按稳定区域迁移,相关展示区域合并后统一验收,避免同时重写模板和业务状态。 | 区域 | 建议组件及职责 | 状态保留位置与接口 | 重点验收 | | --- | --- | --- | --- | | 加入页,已提取 | `JoinForm` 展示目标、昵称、频道、身份选项与连接状态 | 连接与历史仍由现有 composable 管理;表单用明确字段模型,提交、取消和导入用事件 | 固定与开放模式、收藏与历史、连接等待及取消、密码交互 | -| 频道与成员 | `ChannelMemberPanel` 展示层级、成员状态和操作入口 | 复用 `useWebClientChannels` 与 `useWebClientMembers`;移动、私语、私聊等动作交回已有控制层 | 搜索、展开、频道切换、桌面拖放与触屏操作、菜单定位 | +| 频道与成员,已提取 | `ChannelMemberPanel` 与 `MemberActionsMenu` 展示层级、成员状态和操作入口 | 复用父页单一 `useWebClientMembers`;面板保留音频工具栏插槽,菜单拥有定位观察器;动作仍交回现有控制层 | 搜索、频道切换、桌面指针拖动、调度及菜单边界已检查;真实触屏拖动及原生输入框仍待验收 | | 聊天,已提取 | `ChatPanel` 展示标签、历史、草稿和发送反馈 | 草稿与待确认状态继续由单一 `useWebClientChat` 实例管理;保留外部打开私聊的入口 | 切标签保留草稿、发送失败与重试、目标离线、滚动和移动端切页 | | 音频与弹窗 | 身份导入已提取;继续拆音频工具栏、设置面板及密码弹窗 | 媒体仍由语音控制模块拥有;设置关闭触发现有清理;身份状态复用已完成的 06-H | 静音、音量、设备切换、试听、焦点、Esc 关闭及资源释放 | | 管理功能页,已提交 | `AdminServerSettings`、`AdminOperations`、`AdminSkins` 已提取,先验收这三个边界 | 父页创建三个管理 composable,通过稳定 `model` 对象传入;登录、CSRF、路由与总览仍在页面;欢迎词语言用具名模型传递,WebRTC 提示用事件返回 | 保存期间继续编辑、请求失败保留草稿、欢迎词语言、退出失败、路由切换、皮肤文件选择及操作互斥 | 接口只传该区域需要的状态和动作,避免把整页上下文塞进一个对象,也避免父子各自实例化同一个业务 composable。管理组件当前使用 `ReturnType` 描述功能控制器,并在 setup 中解构,因此依赖父页维持同一控制器实例;若后续支持替换实例,需要同步调整读取方式。可以用 `Pick` 或专用接口缩小暴露范围,但不为形式重写已明确的状态归属。展示辅助函数如头像、时间格式在确有多处复用时集中,不额外引入全局状态层。 -样式需要随组件边界一并核对。[客户端样式入口](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:983)和[管理页样式入口](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:251)均使用 `scoped`,当前 CSS 分别为 1,303 与 451 行。身份弹窗已有针对组件的 `:deep` 规则;管理页当前改动将大量功能区选择器改为 `:deep`,并保留部分外壳和语言控件选择器的原作用范围。不要把这项源码变化直接等同于视觉一致:需对比子组件内部、共享按钮与语言菜单的字体、间距、尺寸、折行,以及样式声明顺序和优先级。必要时改为组件自有样式或更窄的区域选择器,保留明暗主题、`data-ws-part` 和路由隔离,管理页保持独立于公开皮肤。 +样式需要随组件边界一并核对。[客户端样式入口](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/WebClient.vue:917)和[管理页样式入口](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/views/AdminView.vue:251)均使用 `scoped`,当前 CSS 分别为 1,303 与 451 行。身份弹窗已有针对组件的 `:deep` 规则;管理页当前改动将大量功能区选择器改为 `:deep`,并保留部分外壳和语言控件选择器的原作用范围。不要把这项源码变化直接等同于视觉一致:需对比子组件内部、共享按钮与语言菜单的字体、间距、尺寸、折行,以及样式声明顺序和优先级。必要时改为组件自有样式或更窄的区域选择器,保留明暗主题、`data-ws-part` 和路由隔离,管理页保持独立于公开皮肤。 测试也需跟随边界调整:[皮肤节点检查](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/src/services/skin-pack.test.ts:80)在当前工作区已递归读取 `components/web-client` 和 `components/admin` 下的 Vue 文件,保留公开节点契约及管理页隔离检查。[管理页状态测试](/Desktop/othercode/teamspeakclient4web/webspeak-webclient/web/test/admin-view.test.mjs:79)已改为读取父页功能模型,仍用 `render: () => null` 替换模板,不能单独证明子组件的字段与事件接线正确。后续验收必须覆盖真实渲染的表单、按钮和路由交互;这属于测试覆盖边界,不能推定测试已发现业务故障。 @@ -102,7 +102,16 @@ 每个区域验收包括桌面与窄屏、五语长文案、明暗主题和自定义皮肤;对比布局、滚动、弹层遮挡及键盘操作。编译通过和源码正则匹配不能替代实际渲染检查。 -### 加入表单与聊天面板的本批结果 +### 频道成员与菜单的本批结果 + +- `ChannelMemberPanel.vue` 接收频道投影、明确字段模型及成员控制器的展示子集;音频工具栏通过插槽保留在父页。`MemberActionsMenu.vue` 共用同一控制器,私聊和音量通过事件交回父页,不复制成员状态。 +- 组件提取前后 90 个成员面板可见元素的尺寸、字体、间距及颜色一致。按成员名/频道名搜索、空结果、键盘清空搜索、嵌套频道切换、菜单调度、私语目标增删、私聊入口、成员音量回传和桌面指针拖动已检查。模拟客户端按实际移动事件广播目录变化。 +- 移动端误调度:鼠标进入“调度到”会先展开子菜单,底部菜单随之上移,点击可能命中目标频道。现仅桌面允许悬停展开,移动端通过点击展开;复查展开后目录不变,明确点击目标后才移动成员。 +- 菜单越界:1280×568 窗口曾测得主菜单底部 580、子菜单底部 615;320×568 时最后一个目标底部 505,而导航从 494 开始。菜单现在按实际尺寸限制位置,子菜单空间不足时向左/上调整,超高菜单允许滚动,保留 CSS 缩放换算。组件拥有尺寸观察器及 resize 监听,卸载时释放。 +- 最终 390 项测试及前后端构建通过;其中 5 项定位回归覆盖短窗口、底部子菜单、右侧翻转、过大内容和缩放后的尺寸。五语×浅色/深色/ILLUSIA×1280×568、390×844、320×568 共 45 组 DOM 边界检查通过。实际点击确认短屏滚动选项和重定位子菜单均能调度,浏览器无警告/错误日志。 +- 验收限制:IAB 不支持 `Input.dispatchTouchEvent`,真实触屏拖动未完成;“离开/戳一戳”依赖原生输入框,本批未执行其完整流程。一次批量浏览器检查超时后按已完成组合恢复并补验,未据此改动业务代码。模拟服务不能证明生产调度权限或真实媒体。 + +### 加入表单与聊天面板的此前结果 - `JoinForm.vue` 通过七个具名模型回传字段,连接、取消、收藏、历史选择及身份操作通过事件回到父页。固定模式提交、开放模式目标/端口/昵称/频道/密码/中继回传、收藏与最近连接回填、身份弹窗入口和取消连接均已检查。取消后释放迟到的凭证响应,页面仍停留加入页。 - `ChatPanel.vue` 接收父页单一聊天控制器的展示子集,保留草稿与确认状态归属;DOM 滚动引用仍接回该控制器。频道/服务器草稿切换、失败保留、成功回执清空、事件日志、外部打开私聊及私聊草稿恢复均已检查。两条长消息后实际滚动位置为 351,内容 867、可视高度 516,底部剩余距离为 0。 @@ -163,6 +172,7 @@ Android 记录具体设备和系统,验收连接、双向语音、输入输出 | 原事项或范围 | 当前状态 | | --- | --- | | 06-K 管理页导航 | 窄屏改为品牌与退出、四项导航两行布局;五语四路由四宽度共 80 组边界检查通过 | +| 06-C 频道成员与菜单 | 两个展示组件已提取;修复移动端误调度及短窗口菜单越界,390 项测试与 45 组边界检查通过;触屏及原生输入框验收仍保留 | | 06-C 加入与聊天 | 两个展示组件已提取;修复开放表单长文案撑宽,表单与聊天共 90 组语言/皮肤/宽度边界检查通过 | | 06-C 管理展示组件 | 三个组件已提取,父页保持状态归属;主要交互通过,原生确认与下载类浏览器验收缺口仍在待办表 | | 06-I、06-J 皮肤生命周期 | 最新选择、页面取消、目录乱序、8 秒等待期限、资源及存储归属已修复;23 项新增测试与本机浏览器检查通过 | diff --git a/package.json b/package.json index a40c567..188ae43 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "dev": "tsx src/index.ts", "build": "tsc", - "test": "node --import tsx --test src/admin/skin-registry.test.ts web/test/admin-api.integration.test.ts web/test/admin-view.test.mjs web/src/services/admin-api.test.ts src/security/open-target-policy.test.ts src/server/visitor-count.test.ts src/server/voice-protocol.test.ts src/server/teamspeak-resolver.test.ts src/server/ts-client.test.ts src/server/join-ticket.test.ts src/server/identity-lease.test.ts src/server/session-manager.test.ts src/server/directory-sync.test.ts src/server/session-events.test.ts src/server/reconnect-policy.test.ts src/server/voice-commands.test.ts src/server/voice-bridge.test.ts src/server/session-audio.test.ts src/server/voice-bridge.integration.test.ts src/server/webrtc-audio.test.ts src/server/audio-stats.test.ts src/server/directory-view.test.ts src/server/member-avatars.test.ts src/server/screen-share-coordinator.test.ts src/shared/client-commands.test.ts src/shared/server-messages.test.ts src/shared/webrtc.test.ts scripts/docker-healthcheck.test.mjs web/test/voice-session.test.mjs web/test/voice-performance.test.mjs web/test/screen-share.test.ts web/test/android-gateway.test.ts web/src/services/skin-catalog.test.ts web/src/services/skin-pack.test.ts web/src/services/identity-import.test.ts web/test/identity-dialog.test.mjs web/test/skin-lifecycle.test.mjs web/src/services/local-persistence.test.ts", + "test": "node --import tsx --test src/admin/skin-registry.test.ts web/test/admin-api.integration.test.ts web/test/admin-view.test.mjs web/src/services/admin-api.test.ts src/security/open-target-policy.test.ts src/server/visitor-count.test.ts src/server/voice-protocol.test.ts src/server/teamspeak-resolver.test.ts src/server/ts-client.test.ts src/server/join-ticket.test.ts src/server/identity-lease.test.ts src/server/session-manager.test.ts src/server/directory-sync.test.ts src/server/session-events.test.ts src/server/reconnect-policy.test.ts src/server/voice-commands.test.ts src/server/voice-bridge.test.ts src/server/session-audio.test.ts src/server/voice-bridge.integration.test.ts src/server/webrtc-audio.test.ts src/server/audio-stats.test.ts src/server/directory-view.test.ts src/server/member-avatars.test.ts src/server/screen-share-coordinator.test.ts src/shared/client-commands.test.ts src/shared/server-messages.test.ts src/shared/webrtc.test.ts scripts/docker-healthcheck.test.mjs web/test/voice-session.test.mjs web/test/voice-performance.test.mjs web/test/screen-share.test.ts web/test/android-gateway.test.ts web/src/services/skin-catalog.test.ts web/src/services/member-menu-placement.test.ts web/src/services/skin-pack.test.ts web/src/services/identity-import.test.ts web/test/identity-dialog.test.mjs web/test/skin-lifecycle.test.mjs web/src/services/local-persistence.test.ts", "verify": "npm test && npm run build && npm run web:build", "start": "node dist/index.js", "web:dev": "cd web && npx vite --host", diff --git a/web/src/components/web-client/ChannelMemberPanel.vue b/web/src/components/web-client/ChannelMemberPanel.vue new file mode 100644 index 0000000..6f9b60e --- /dev/null +++ b/web/src/components/web-client/ChannelMemberPanel.vue @@ -0,0 +1,92 @@ + + + diff --git a/web/src/components/web-client/MemberActionsMenu.vue b/web/src/components/web-client/MemberActionsMenu.vue new file mode 100644 index 0000000..ece03aa --- /dev/null +++ b/web/src/components/web-client/MemberActionsMenu.vue @@ -0,0 +1,120 @@ + + + diff --git a/web/src/services/member-menu-placement.test.ts b/web/src/services/member-menu-placement.test.ts new file mode 100644 index 0000000..ef09eac --- /dev/null +++ b/web/src/services/member-menu-placement.test.ts @@ -0,0 +1,25 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { placeMemberMenu, placeMemberSubmenu } from "./member-menu-placement.js"; + +test("the complete menu stays inside a short desktop window", () => { + assert.deepEqual(placeMemberMenu({ x: 167, y: 309 }, { width: 188, height: 271 }, { width: 1280, height: 568 }), { x: 167, y: 285 }); +}); + +test("a submenu near the bottom moves up without moving off the right edge", () => { + assert.deepEqual(placeMemberSubmenu({ left: 180, right: 340, top: 507 }, { width: 220, height: 84 }, { width: 1280, height: 568 }), { x: 346, y: 472 }); +}); + +test("a submenu opens to the left when the right side has no room", () => { + assert.deepEqual(placeMemberSubmenu({ left: 1020, right: 1220, top: 200 }, { width: 220, height: 180 }, { width: 1280, height: 720 }), { x: 794, y: 200 }); +}); + +test("oversized measured content remains reachable from the viewport inset", () => { + assert.deepEqual(placeMemberMenu({ x: -40, y: 500 }, { width: 900, height: 600 }, { width: 800, height: 400 }), { x: 12, y: 12 }); +}); + +test("placement uses rendered dimensions including CSS zoom", () => { + const result = placeMemberMenu({ x: 1500, y: 800 }, { width: 282, height: 406.5 }, { width: 1600, height: 900 }); + assert.deepEqual(result, { x: 1306, y: 481.5 }); + assert.equal(result.y + 406.5, 888); +}); diff --git a/web/src/services/member-menu-placement.ts b/web/src/services/member-menu-placement.ts new file mode 100644 index 0000000..b942987 --- /dev/null +++ b/web/src/services/member-menu-placement.ts @@ -0,0 +1,18 @@ +interface Size { width: number; height: number } +interface Point { x: number; y: number } +interface Anchor { left: number; right: number; top: number } + +// All inputs and results are rendered viewport pixels. CSS zoom conversion +// belongs to the component, after placement has been constrained. +export function placeMemberMenu(point: Point, size: Size, viewport: Size, inset = 12): Point { + return { + x: Math.max(inset, Math.min(point.x, viewport.width - size.width - inset)), + y: Math.max(inset, Math.min(point.y, viewport.height - size.height - inset)), + }; +} + +export function placeMemberSubmenu(anchor: Anchor, size: Size, viewport: Size, gap = 6): Point { + const right = anchor.right + gap; + const x = right + size.width <= viewport.width - 12 ? right : anchor.left - gap - size.width; + return placeMemberMenu({ x, y: anchor.top }, size, viewport); +} diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index cb4d7dc..e454a6f 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -193,7 +193,7 @@ test("the activity artwork layer floats above room content without intercepting assert.match(css, /\.app-shell \.workspace-content\s*\{\s*position: relative;\s*isolation: isolate;/); assert.match(css, /\.voice-activity-artwork\s*\{\s*position: absolute;\s*z-index: 2;\s*inset: -26px 0 -48px;[^}]*pointer-events: none;/); assert.match(css, /\.voice-activity-artwork\s*\{[^}]*transform: perspective\(1100px\) rotateY\(-2\.5deg\) translateZ\(22px\)/); - assert.match(css, /\.app-shell \.member-panel::before\s*\{\s*content: "";\s*position: absolute;\s*z-index: 1;\s*left: -28px;\s*bottom: 18px;\s*width: min\(430px, calc\(100vw - 24px\)\);\s*aspect-ratio: 3 \/ 2;[^}]*perspective\(1100px\) rotateY\(-8deg\)/); + assert.match(css, /:deep\(\.app-shell \.member-panel::before\)\s*\{\s*content: "";\s*position: absolute;\s*z-index: 1;\s*left: -28px;\s*bottom: 18px;\s*width: min\(430px, calc\(100vw - 24px\)\);\s*aspect-ratio: 3 \/ 2;[^}]*perspective\(1100px\) rotateY\(-8deg\)/); assert.match(css, /:deep\(\.app-shell \.chat-empty\[data-ws-state="messages-empty"\]\)\s*\{[^}]*min-height: 210px;\s*padding: 126px 12px 10px;/); assert.match(css, /:deep\(\.app-shell \.chat-panel \.section-heading\),[\s\S]*?:deep\(\.app-shell \.chat-panel \.message-composer\)\s*\{\s*position: relative;\s*z-index: 3;/); assert.match(css, /\.screen-share-player\s*\{[^}]*background: var\(--surface-1\)/); diff --git a/web/src/styles/web-client.css b/web/src/styles/web-client.css index 908b09a..84a0543 100644 --- a/web/src/styles/web-client.css +++ b/web/src/styles/web-client.css @@ -106,7 +106,7 @@ .server-heading { min-width: 0; flex: 1; }.server-heading strong, .server-heading span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.server-heading strong { color: #24312f; font-size: 12px; }.server-heading span { margin-top: 4px; color: #84918d; font-size: 10px; }.server-heading i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #65d879; } .round-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; color: #71817c; background: transparent; border-radius: 8px; cursor: pointer; transition: .18s; }.round-icon:hover { color: #006a64; background: #e4efec; } .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, .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, .member-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #40504b; font-size: 11px; }.channel-search input::placeholder, .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; } +.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; } @@ -117,7 +117,7 @@ .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; } -.member-panel { min-width: 0; padding: 26px 16px; color: #2c3935; background: #fbfcfc; border-left: 1px solid #eef2f0; }.member-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }.member-panel-heading h2 { margin: 5px 0 0; color: #25322e; font-size: 19px; letter-spacing: -.04em; }.member-search { margin-top: 18px; padding: 0 10px; min-height: 33px; }.member-group { margin-top: 24px; }.member-group-title { display: flex; align-items: center; gap: 8px; color: #85928e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.group-line { height: 1px; flex: 1; background: #e6edeb; }.member-list { display: flex; flex-direction: column; gap: 17px; margin-top: 17px; }.member-row { display: flex; align-items: center; gap: 8px; min-width: 0; }.member-avatar { position: relative; display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; }.member-avatar.speaking { box-shadow: 0 0 0 2px #90f691, 0 0 10px rgba(144,246,145,.35); }.member-presence { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border: 2px solid #fbfcfc; border-radius: 50%; background: #65d879; }.member-copy { min-width: 0; flex: 1; }.member-copy strong, .member-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.member-copy strong { color: #34423d; font-size: 10px; }.member-copy span { margin-top: 4px; color: #96a29e; font-size: 9px; }.member-volume { display: flex; align-items: center; gap: 5px; color: #a1afaa; width: 64px; }.member-volume input { width: 45px; height: 4px; appearance: none; border-radius: 99px; outline: none; cursor: pointer; }.member-volume input::-webkit-slider-thumb, .settings-range::-webkit-slider-thumb { width: 14px; height: 14px; appearance: none; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.12); cursor: pointer; }.member-volume input::-moz-range-thumb, .settings-range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.12); cursor: pointer; }.member-empty { margin-top: 22px; color: #98a49f; font-size: 10px; text-align: center; }.member-panel-tip { display: flex; gap: 8px; margin-top: 36px; padding: 12px; color: #72827c; background: #eef5f2; border-radius: 9px; font-size: 9px; line-height: 1.5; }.member-panel-tip .ui-icon { color: #5e9e96; } +:deep(.member-panel) { min-width: 0; padding: 26px 16px; color: #2c3935; background: #fbfcfc; border-left: 1px solid #eef2f0; }:deep(.member-panel-heading) { display: flex; align-items: flex-start; justify-content: space-between; }:deep(.member-panel-heading h2) { margin: 5px 0 0; color: #25322e; font-size: 19px; letter-spacing: -.04em; }:deep(.member-search) { margin-top: 18px; padding: 0 10px; min-height: 33px; }.member-group { margin-top: 24px; }.member-group-title { display: flex; align-items: center; gap: 8px; color: #85928e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.group-line { height: 1px; flex: 1; background: #e6edeb; }:deep(.member-list) { display: flex; flex-direction: column; gap: 17px; margin-top: 17px; }:deep(.member-row) { display: flex; align-items: center; gap: 8px; min-width: 0; }:deep(.member-avatar) { position: relative; display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; }:deep(.member-avatar.speaking) { box-shadow: 0 0 0 2px #90f691, 0 0 10px rgba(144,246,145,.35); }:deep(.member-presence) { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border: 2px solid #fbfcfc; border-radius: 50%; background: #65d879; }:deep(.member-copy) { min-width: 0; flex: 1; }:deep(.member-copy strong), :deep(.member-copy span) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }:deep(.member-copy strong) { color: #34423d; font-size: 10px; }:deep(.member-copy span) { margin-top: 4px; color: #96a29e; font-size: 9px; }:deep(.member-volume) { display: flex; align-items: center; gap: 5px; color: #a1afaa; width: 64px; }:deep(.member-volume input) { width: 45px; height: 4px; appearance: none; border-radius: 99px; outline: none; cursor: pointer; }:deep(.member-volume input::-webkit-slider-thumb), .settings-range::-webkit-slider-thumb { width: 14px; height: 14px; appearance: none; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.12); cursor: pointer; }:deep(.member-volume input::-moz-range-thumb), .settings-range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.12); cursor: pointer; }:deep(.member-empty) { margin-top: 22px; color: #98a49f; font-size: 10px; text-align: center; }.member-panel-tip { display: flex; gap: 8px; margin-top: 36px; padding: 12px; color: #72827c; background: #eef5f2; border-radius: 9px; font-size: 9px; line-height: 1.5; }.member-panel-tip .ui-icon { color: #5e9e96; } .modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(25, 33, 31, .42); backdrop-filter: blur(5px); }.settings-modal { display: flex; width: min(920px, 100%); max-height: min(760px, calc(100dvh - 56px)); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(16,40,35,.2); }.settings-nav { display: flex; flex-direction: column; width: 215px; flex: 0 0 auto; padding: 28px 12px 20px; background: #f8faf9; border-right: 1px solid #e6ecea; }.settings-title { padding: 0 13px 20px; color: #25322e; font-size: 19px; font-weight: 700; }.settings-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; color: #65736f; background: transparent; border-left: 3px solid transparent; border-radius: 8px; font-size: 11px; text-align: left; cursor: pointer; }.settings-nav-item.active { color: #006a64; background: #e2efec; border-left-color: #006a64; font-weight: 700; }.settings-version { margin-top: auto; padding: 20px 13px 0; color: #98a5a0; border-top: 1px solid #e4ebe8; font-size: 10px; line-height: 1.7; }.settings-version span { color: #b0bbb7; }.settings-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }.settings-header { display: flex; align-items: center; justify-content: space-between; min-height: 75px; padding: 0 28px; border-bottom: 1px solid #edf1ef; }.settings-header h2 { margin: 0; color: #202c29; font-size: 22px; letter-spacing: -.045em; }.settings-content { flex: 1; overflow-y: auto; padding: 28px 40px; }.settings-section { max-width: 620px; margin: 0 auto; }.settings-section h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; color: #293631; font-size: 16px; }.settings-section h3 .ui-icon { color: #006a64; }.settings-label { display: block; margin-bottom: 8px; color: #5e6d67; font-size: 10px; font-weight: 500; }.select-like { display: flex; align-items: center; justify-content: space-between; min-height: 39px; margin-bottom: 19px; padding: 0 13px; color: #394742; background: #f4f7f6; border-radius: 8px; font-size: 11px; }.select-like .ui-icon { color: #677671; }.settings-range-row { display: flex; align-items: center; justify-content: space-between; }.settings-range-row .settings-label { margin: 0; }.settings-range-row strong { color: #006a64; font-size: 10px; }.settings-range { width: 100%; height: 6px; margin: 11px 0 20px; appearance: none; border-radius: 999px; outline: none; cursor: pointer; }.settings-range::-webkit-slider-thumb { width: 19px; height: 19px; }.settings-range::-moz-range-thumb { width: 19px; height: 19px; }.mic-test { padding: 15px; border: 1px solid #e5ece9; border-radius: 11px; background: #fafcfb; }.mic-test-header { display: flex; align-items: center; justify-content: space-between; }.mic-test-header strong { color: #36453f; font-size: 11px; }.mic-test-header button { padding: 6px 9px; color: #006a64; background: #e0f1ee; border-radius: 5px; font-size: 10px; cursor: pointer; }.meter { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; height: 39px; margin-top: 12px; padding: 0 4px 4px; border-bottom: 1px solid #dce6e2; }.meter i { width: 5px; min-height: 4px; border-radius: 3px 3px 0 0; background: #dfe6e3; }.meter i.active { background: #81ed8b; box-shadow: 0 0 7px rgba(129,237,139,.45); animation: meter 1s ease-in-out infinite alternate; }.meter-labels { display: flex; justify-content: space-between; margin-top: 6px; color: #9ba6a2; font-size: 8px; }.settings-separator { max-width: 620px; margin: 32px auto; border-top: 1px solid #edf1ef; }.mode-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; color: #66817a; background: #eef7f4; border-radius: 8px; font-size: 10px; line-height: 1.5; }.mode-note .ui-icon { color: #4f9c91; }.settings-footer { display: flex; justify-content: flex-end; gap: 16px; min-height: 67px; padding: 15px 28px; border-top: 1px solid #edf1ef; }.text-button, :deep(.identity-import-cancel) { padding: 0 6px; color: #63716c; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }.save-button { padding: 0 23px; }.qq-modal-card { position: relative; width: min(460px, 100%); max-height: min(90dvh, 720px); overflow-y: auto; padding: 30px; color: #263431; border: 1px solid #d9e7e3; border-radius: 20px; background: #fff; box-shadow: 0 20px 60px rgba(16,40,35,.22); text-align: center; }.qq-modal-heading { padding: 0 24px 18px; }.qq-modal-heading h2 { margin: 8px 0 0; color: #1d2d29; font-size: 25px; letter-spacing: -.04em; }.qq-modal-close, :deep(.identity-import-close) { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #6d7d78; background: #f1f6f4; border: 1px solid #e1ebe8; border-radius: 50%; cursor: pointer; }.qq-modal-close:hover, :deep(.identity-import-close:hover) { color: #006a64; background: #e2f2ef; border-color: #c8e6e1; }.qq-qr-image { display: block; width: min(100%, 360px); max-height: min(55vh, 520px); margin: 0 auto; object-fit: contain; border-radius: 12px; }.qq-direct-join { margin: 18px 0 9px; color: #667773; font-size: 13px; }.qq-join-link { display: block; padding: 11px 14px; color: #006a64; background: #edf8f5; border: 1px solid #cfe9e4; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }.qq-join-link:hover { color: #fff; background: #006a64; border-color: #006a64; }.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 11px 15px; color: #fff; background: #263e39; border-radius: 9px; box-shadow: 0 10px 24px rgba(16,48,42,.2); font-size: 11px; animation: toast-in .25s ease-out; } @@ -168,9 +168,9 @@ .join-page :deep(*) { transition-duration: .01ms !important; } } -@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; }.member-panel { padding-inline: 12px; }.member-volume { display: none; } } -@media (max-width: 980px) { .app-shell { grid-template-columns: 70px 245px minmax(0, 1fr); }.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, .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; }.settings-modal { max-height: calc(100dvh - 28px); }.settings-nav { display: none; }.settings-content { padding: 24px 20px; }.settings-header { min-height: 62px; padding-inline: 20px; }.settings-header h2 { font-size: 19px; }.settings-footer { min-height: 61px; padding-inline: 20px; } } +@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; }.settings-modal { max-height: calc(100dvh - 28px); }.settings-nav { display: none; }.settings-content { padding: 24px 20px; }.settings-header { min-height: 62px; padding-inline: 20px; }.settings-header h2 { font-size: 19px; }.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) { @@ -204,18 +204,18 @@ :deep(.identity-options[open] summary) { margin-bottom: 10px; } :deep(.cancel-connect-button) { justify-self: center; min-height: 32px; padding: 0 10px; color: #6b7d77; background: transparent; font-size: 11px; cursor: pointer; } :deep(.cancel-connect-button:hover) { color: #006a64; text-decoration: underline; } -.member-panel { display: flex; flex-direction: column; min-height: 0; padding: 26px 18px 18px; overflow: hidden; } -.member-tree { flex: 1; min-height: 0; margin-top: 18px; padding-right: 3px; overflow-y: auto; } -.member-channel-group { padding: 8px 0 14px; border-bottom: 1px solid #e7eeeb; } -.member-channel-group + .member-channel-group { margin-top: 8px; } -.member-channel-heading { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px 4px; color: #52635d; background: transparent; border-radius: 7px; text-align: left; cursor: pointer; } -.member-channel-heading:hover, .member-channel-group.current .member-channel-heading { color: #006a64; background: #e5f3f0; } -.member-channel-heading span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; } -.member-channel-heading small { color: #94a29d; font-size: 10px; } -.member-channel-group.current .member-channel-heading small { color: #4d9a92; } -.member-channel-group .member-list { gap: 13px; margin: 9px 4px 0 14px; } -.member-volume { display: flex; } -.channel-no-members { margin: 7px 4px 0 31px; color: #a0ada8; font-size: 10px; } +:deep(.member-panel) { display: flex; flex-direction: column; min-height: 0; padding: 26px 18px 18px; overflow: hidden; } +:deep(.member-tree) { flex: 1; min-height: 0; margin-top: 18px; padding-right: 3px; overflow-y: auto; } +:deep(.member-channel-group) { padding: 8px 0 14px; border-bottom: 1px solid #e7eeeb; } +:deep(.member-channel-group + .member-channel-group) { margin-top: 8px; } +:deep(.member-channel-heading) { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px 4px; color: #52635d; background: transparent; border-radius: 7px; text-align: left; cursor: pointer; } +:deep(.member-channel-heading:hover), :deep(.member-channel-group.current .member-channel-heading) { color: #006a64; background: #e5f3f0; } +:deep(.member-channel-heading span) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; } +:deep(.member-channel-heading small) { color: #94a29d; font-size: 10px; } +:deep(.member-channel-group.current .member-channel-heading small) { color: #4d9a92; } +:deep(.member-channel-group .member-list) { gap: 13px; margin: 9px 4px 0 14px; } +:deep(.member-volume) { display: flex; } +:deep(.channel-no-members) { margin: 7px 4px 0 31px; color: #a0ada8; font-size: 10px; } .member-panel-tip { flex: 0 0 auto; margin-top: 15px; } .settings-modal { width: min(760px, 100%); } .settings-nav { display: none; } @@ -300,13 +300,13 @@ :deep(.app-shell .message-bubble), :deep(.app-shell .message-composer input) { font-size: 15px; } .app-shell .dock-user strong { font-size: 13.75px; } .app-shell .dock-user span, .app-shell .mic-mode-switch button, .app-shell .ptt-indicator { font-size: 11.25px; } -.app-shell .member-panel-heading h2 { font-size: 23.75px; } -.app-shell .member-search input { font-size: 13.75px; } -.app-shell .member-channel-heading span { font-size: 15px; } -.app-shell .member-channel-heading small { font-size: 12.5px; } -.app-shell .member-copy strong { font-size: 12.5px; } -.app-shell .member-copy span, .app-shell .channel-no-members { font-size: 11.25px; } -.app-shell .member-empty, .app-shell .member-panel-tip { font-size: 12.5px; } +:deep(.app-shell .member-panel-heading h2) { font-size: 23.75px; } +:deep(.app-shell .member-search input) { font-size: 13.75px; } +:deep(.app-shell .member-channel-heading span) { font-size: 15px; } +:deep(.app-shell .member-channel-heading small) { font-size: 12.5px; } +:deep(.app-shell .member-copy strong) { font-size: 12.5px; } +:deep(.app-shell .member-copy span), :deep(.app-shell .channel-no-members) { font-size: 11.25px; } +:deep(.app-shell .member-empty), .app-shell .member-panel-tip { font-size: 12.5px; } .settings-modal .settings-header h2 { font-size: 27.5px; } .settings-modal .settings-section h3 { font-size: 20px; } .settings-modal .settings-label, .settings-modal .settings-range-row strong, .settings-modal .settings-error { font-size: 12.5px; } @@ -334,8 +334,8 @@ :deep(.join-page .connect-button) { font-size: 16.25px; } .join-page .join-meta, .join-page .join-footer { font-size: 12.5px; } -@media (min-width: 741px) and (max-width: 980px) { .app-shell { grid-template-columns: minmax(0, 1fr); }.member-panel { display: none; } } -@media (max-width: 980px) { .app-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(210px, 35dvh); }.workspace { height: auto; min-height: 0; }.member-panel { display: flex; border-top: 1px solid #eef2f0; border-left: 0; padding: 16px 18px; }.member-tree { margin-top: 10px; } } +@media (min-width: 741px) and (max-width: 980px) { .app-shell { grid-template-columns: minmax(0, 1fr); }:deep(.member-panel) { display: none; } } +@media (max-width: 980px) { .app-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(210px, 35dvh); }.workspace { height: auto; min-height: 0; }:deep(.member-panel) { display: flex; border-top: 1px solid #eef2f0; border-left: 0; padding: 16px 18px; }:deep(.member-tree) { margin-top: 10px; } } @media (max-width: 740px) { .app-shell { display: grid; grid-template-rows: minmax(0, 1fr) 220px; }.app-shell .room-hero h1 { font-size: 27.5px; }.app-shell .room-hero p { font-size: 13.75px; }:deep(.app-shell .section-heading h2) { font-size: 21.25px; }:deep(.app-shell .message-bubble), :deep(.app-shell .message-composer input) { font-size: 13.75px; }.app-shell .mic-mode-switch button { font-size: 11.25px; }.settings-modal .settings-content { padding: 24px 20px; }.settings-modal .settings-header h2 { font-size: 23.75px; } } /* Keep the connected workspace sized to the browser viewport and let the @@ -348,7 +348,7 @@ .app-shell { grid-template-columns: 318px minmax(0, 1fr); height: 100dvh; min-height: 0; max-height: 100dvh; } .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); } -.member-panel { grid-column: 1; grid-row: 1; border-right: 1px solid #eef2f0; border-left: 0; } +: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); } .chat-panel { min-height: 0; } :deep(.message-list) { min-height: clamp(150px, 20dvh, 220px); max-height: min(360px, 42dvh); } @@ -357,7 +357,7 @@ @media (max-width: 980px) { .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(210px, 35dvh); } .workspace { grid-column: 1; grid-row: 1; height: auto; } - .member-panel { grid-column: 1; grid-row: 2; display: flex; border-top: 1px solid #eef2f0; border-right: 0; padding: 16px 18px; } + :deep(.member-panel) { grid-column: 1; grid-row: 2; display: flex; border-top: 1px solid #eef2f0; border-right: 0; padding: 16px 18px; } } @media (max-width: 740px) { @@ -403,31 +403,31 @@ :deep(.chat-tabs button.active) { color: #006a64; background: #dff1ed; border-color: #c9e5df; font-weight: 700; } :deep(.event-row) { display: flex; align-items: baseline; gap: 12px; padding: 9px 10px; color: #65746e; border-bottom: 1px solid #edf2f0; font-size: 12px; line-height: 1.45; } :deep(.event-row time) { flex: 0 0 auto; color: #99a6a1; font-size: 10px; } -.member-panel-heading { align-items: flex-end; } -.status-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: #5f746c; background: #f2f7f5; border: 1px solid #e0ebe7; border-radius: 7px; font-size: 11px; cursor: pointer; } -.status-button:hover, .status-button.active { color: #8c653a; background: #fcf3e7; border-color: #f0dcc0; } -.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #66d27a; } -.status-button.active .status-dot { background: #e0a34d; } -.member-row { position: relative; padding: 4px 6px; margin: -4px -6px; border-radius: 9px; transition: background .16s ease, box-shadow .16s ease; } -.member-row:hover, .member-row:focus-within { background: #edf7f4; box-shadow: 0 4px 12px rgba(20, 58, 51, .07); } -.member-context-menu { position: fixed; z-index: 40; display: grid; min-width: 188px; gap: 3px; padding: 8px; background: #fff; border: 1px solid #e0eae6; border-radius: 10px; box-shadow: 0 14px 35px rgba(20, 50, 44, .16); } -.member-context-menu strong { padding: 4px 8px 7px; color: #2a3934; font-size: 12px; } -.member-context-menu button { display: flex; align-items: center; gap: 8px; padding: 8px; color: #52625c; background: transparent; border-radius: 6px; font-size: 11px; text-align: left; cursor: pointer; } -.member-context-menu button:hover { color: #006a64; background: #edf6f3; } -.member-menu-submenu { position: relative; } -.member-menu-submenu-trigger { width: 100%; } -.member-menu-submenu-arrow { margin-left: auto; } -.member-submenu-panel { position: absolute; z-index: 1; top: -8px; left: calc(100% + 6px); display: grid; min-width: 220px; max-height: min(420px, calc(100vh - 24px)); gap: 3px; padding: 8px; overflow-y: auto; background: #fff; border: 1px solid #e0eae6; border-radius: 10px; box-shadow: 0 14px 35px rgba(20, 50, 44, .16); } -.member-submenu-panel button { width: 100%; min-width: 0; } -.member-submenu-panel button:disabled { opacity: .55; cursor: default; } -.member-submenu-panel button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.member-submenu-panel button small { margin-left: auto; color: #83928c; font-size: 10px; white-space: nowrap; } -.member-submenu-empty { display: block; padding: 8px; color: #83928c; font-size: 11px; } +:deep(.member-panel-heading) { align-items: flex-end; } +:deep(.status-button) { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: #5f746c; background: #f2f7f5; border: 1px solid #e0ebe7; border-radius: 7px; font-size: 11px; cursor: pointer; } +:deep(.status-button:hover), :deep(.status-button.active) { color: #8c653a; background: #fcf3e7; border-color: #f0dcc0; } +:deep(.status-dot) { width: 7px; height: 7px; border-radius: 50%; background: #66d27a; } +:deep(.status-button.active .status-dot) { background: #e0a34d; } +:deep(.member-row) { position: relative; padding: 4px 6px; margin: -4px -6px; border-radius: 9px; transition: background .16s ease, box-shadow .16s ease; } +:deep(.member-row:hover), :deep(.member-row:focus-within) { background: #edf7f4; box-shadow: 0 4px 12px rgba(20, 58, 51, .07); } +:deep(.member-context-menu) { position: fixed; z-index: 40; display: grid; min-width: 188px; gap: 3px; padding: 8px; background: #fff; border: 1px solid #e0eae6; border-radius: 10px; box-shadow: 0 14px 35px rgba(20, 50, 44, .16); } +:deep(.member-context-menu strong) { padding: 4px 8px 7px; color: #2a3934; font-size: 12px; } +:deep(.member-context-menu button) { display: flex; align-items: center; gap: 8px; padding: 8px; color: #52625c; background: transparent; border-radius: 6px; font-size: 11px; text-align: left; cursor: pointer; } +:deep(.member-context-menu button:hover) { color: #006a64; background: #edf6f3; } +:deep(.member-menu-submenu) { position: relative; } +:deep(.member-menu-submenu-trigger) { width: 100%; } +:deep(.member-menu-submenu-arrow) { margin-left: auto; } +:deep(.member-submenu-panel) { position: absolute; z-index: 1; top: -8px; left: calc(100% + 6px); display: grid; min-width: 220px; max-height: min(420px, calc(100vh - 24px)); gap: 3px; padding: 8px; overflow-y: auto; background: #fff; border: 1px solid #e0eae6; border-radius: 10px; box-shadow: 0 14px 35px rgba(20, 50, 44, .16); } +:deep(.member-submenu-panel button) { width: 100%; min-width: 0; } +:deep(.member-submenu-panel button:disabled) { opacity: .55; cursor: default; } +:deep(.member-submenu-panel button span) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +:deep(.member-submenu-panel button small) { margin-left: auto; color: #83928c; font-size: 10px; white-space: nowrap; } +:deep(.member-submenu-empty) { display: block; padding: 8px; color: #83928c; font-size: 11px; } .member-menu-disabled { opacity: .55; cursor: not-allowed !important; } -.menu-volume { display: grid; gap: 6px; padding: 4px 8px 8px; color: #71817c; font-size: 10px; } -.menu-volume input { width: 100%; height: 5px; appearance: none; border-radius: 99px; outline: none; cursor: pointer; } -.menu-volume input::-webkit-slider-thumb { width: 14px; height: 14px; appearance: none; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; cursor: pointer; } -.menu-volume input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; cursor: pointer; } +:deep(.menu-volume) { display: grid; gap: 6px; padding: 4px 8px 8px; color: #71817c; font-size: 10px; } +:deep(.menu-volume input) { width: 100%; height: 5px; appearance: none; border-radius: 99px; outline: none; cursor: pointer; } +:deep(.menu-volume input::-webkit-slider-thumb) { width: 14px; height: 14px; appearance: none; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; cursor: pointer; } +:deep(.menu-volume input::-moz-range-thumb) { width: 14px; height: 14px; border: 2px solid #81d8d0; border-radius: 50%; background: #fff; cursor: pointer; } .poke-banner { position: fixed; z-index: 35; top: 82px; right: 24px; display: flex; align-items: center; gap: 9px; max-width: min(380px, calc(100% - 48px)); padding: 10px 11px; color: #52645c; background: #fffdf6; border: 1px solid #f0dfbd; border-radius: 9px; box-shadow: 0 8px 22px rgba(88, 65, 28, .12); font-size: 12px; } .poke-banner > .ui-icon { color: #d2973d; } .poke-banner span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @@ -467,8 +467,8 @@ .web-client :deep(button:focus-visible), .web-client :deep(a:focus-visible), .web-client :deep(input:focus-visible), .web-client :deep(select:focus-visible), .web-client textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; } :deep(.message-composer) { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 3; } @media (max-width: 740px) { .workspace-scroll { overscroll-behavior: contain; }.workspace-content { width: min(100% - 24px, 650px); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }:deep(.message-composer) { margin-bottom: 8px; } } -@media (max-width: 740px) { .member-context-menu { left: 12px !important; right: 12px; top: auto !important; bottom: env(safe-area-inset-bottom, 0px); min-width: 0; border-radius: 16px 16px 0 0; padding: 14px; } .member-context-menu button { min-height: 42px; font-size: 13px; } .member-context-menu strong { padding: 4px 8px 11px; font-size: 14px; } .menu-volume { font-size: 12px; } } -@media (max-width: 740px) { .member-submenu-panel { position: static; min-width: 0; max-height: 190px; margin: 4px 0 0 24px; padding: 4px; border-radius: 10px; box-shadow: none; } .member-submenu-panel button { min-height: 42px; font-size: 13px; } } +@media (max-width: 740px) { :deep(.member-context-menu) { left: 12px !important; right: 12px; top: auto !important; bottom: env(safe-area-inset-bottom, 0px); min-width: 0; border-radius: 16px 16px 0 0; padding: 14px; } :deep(.member-context-menu button) { min-height: 42px; font-size: 13px; } :deep(.member-context-menu strong) { padding: 4px 8px 11px; font-size: 14px; } :deep(.menu-volume) { font-size: 12px; } } +@media (max-width: 740px) { :deep(.member-submenu-panel) { position: static; min-width: 0; max-height: 190px; margin: 4px 0 0 24px; padding: 4px; border-radius: 10px; box-shadow: none; } :deep(.member-submenu-panel button) { min-height: 42px; font-size: 13px; } } /* M007 whisper target controls and M008 mobile navigation. */ .whisper-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; color: #52645e; border: 1px solid #d6ebe5; border-radius: 10px; background: #eef8f5; } @@ -490,9 +490,9 @@ .app-shell .workspace-scroll { flex: 1; height: 100%; min-height: 0; overflow-y: auto; } :deep(.app-shell .mobile-section-hidden) { display: none; } .app-shell.mobile-view-more .workspace { display: none; } - .app-shell .member-panel { display: none !important; order: 2; width: 100%; max-height: calc(100dvh - 142px); min-height: 235px; padding: 18px 15px 24px; border-top: 1px solid var(--border); border-right: 0; overflow: hidden; } - .app-shell .member-panel.mobile-section-visible { display: flex !important; } - .app-shell .member-panel .member-tree { max-height: none; } + :deep(.app-shell .member-panel) { display: none !important; order: 2; width: 100%; max-height: calc(100dvh - 142px); min-height: 235px; padding: 18px 15px 24px; border-top: 1px solid var(--border); border-right: 0; overflow: hidden; } + :deep(.app-shell .member-panel.mobile-section-visible) { display: flex !important; } + :deep(.app-shell .member-panel .member-tree) { max-height: none; } .mobile-more-panel { display: grid; gap: 10px; width: min(100% - 30px, 650px); margin: 26px auto 0; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-1); box-shadow: 0 7px 18px color-mix(in srgb, var(--text-primary) 8%, transparent); } .mobile-more-panel h2 { margin: 0 0 8px; color: var(--text-primary); font-size: 24px; } .mobile-more-panel button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; text-align: left; cursor: pointer; } @@ -547,7 +547,7 @@ .app-shell { height: 100dvh; min-height: 0; max-height: 100dvh; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); overflow: hidden; } .app-shell .workspace { height: auto; min-height: 0; flex: 1 1 auto; } .app-shell.mobile-view-channels .workspace { display: none; } - .app-shell .member-panel.mobile-section-visible { flex: 1 1 auto; min-height: 0; max-height: none; } + :deep(.app-shell .member-panel.mobile-section-visible) { flex: 1 1 auto; min-height: 0; max-height: none; } .mobile-more-panel { min-height: 0; max-height: none; margin-bottom: 0; overflow-y: auto; } } @@ -560,15 +560,15 @@ /* 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, .member-action-button, .member-menu-backdrop { display: none; } +.mobile-voice-controls, .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); } .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; } .microphone-control .settings-label { margin-bottom: 4px; } .microphone-control .settings-hint { max-width: 390px; margin: 0; } .microphone-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; flex: 0 0 auto; padding: 0 12px; color: #fff; background: var(--accent); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; } .microphone-toggle.muted { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, var(--surface-1)); } -.member-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; } -.member-menu-close { display: none; } +:deep(.member-menu-header) { display: flex; align-items: center; justify-content: space-between; gap: 8px; } +:deep(.member-menu-close) { display: none; } @media (max-width: 740px) { :global(html[data-ws-route="webclient"]), :global(html[data-ws-route="webclient"] body), :global(html[data-ws-route="webclient"] #app) { height: 100dvh; height: 100svh; min-height: 100dvh; min-height: 100svh; max-height: 100dvh; max-height: 100svh; } @@ -612,25 +612,25 @@ .mobile-voice-settings { flex: 0 0 auto; width: 82px; } .mobile-voice-settings span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } - .app-shell .member-panel.mobile-section-visible { display: flex !important; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; max-height: none; padding: 18px 14px 16px; border-top: 0; border-right: 0; overflow: hidden; } - .member-panel-heading { flex: 0 0 auto; } - .member-panel-heading h2 { font-size: 23px; } - .status-button { min-height: 34px; padding-inline: 10px; font-size: 12px; } - .member-search { flex: 0 0 auto; min-height: 44px; margin-top: 14px; padding: 0 12px; border-radius: 11px; } - .member-search input { font-size: 15px; } - .app-shell .member-panel .member-tree { flex: 1 1 auto; min-height: 0; max-height: none; margin-top: 12px; padding: 0 2px 4px 0; overflow-y: auto; scrollbar-gutter: stable; } - .member-channel-group { padding: 7px 0 12px; } - .member-channel-heading { min-height: 44px; padding: 0 9px; border-radius: 11px; font-size: 14px; } - .member-channel-heading small { font-size: 12px; } - .member-list { gap: 3px; margin-top: 5px; } - .member-row { min-height: 58px; margin: 0; padding: 7px 7px; gap: 9px; border-radius: 12px; } - .member-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; } - .member-presence { width: 10px; height: 10px; } - .member-copy strong { font-size: 14px; } - .member-copy span { margin-top: 3px; font-size: 12px; } - .desktop-audio-dock, .member-flags, .member-volume, .member-panel-tip { display: none; } - .member-action-button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--text-muted); background: transparent; border-radius: 10px; cursor: pointer; } - .member-action-button:hover, .member-action-button:active { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); } + :deep(.app-shell .member-panel.mobile-section-visible) { display: flex !important; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; max-height: none; padding: 18px 14px 16px; border-top: 0; border-right: 0; overflow: hidden; } + :deep(.member-panel-heading) { flex: 0 0 auto; } + :deep(.member-panel-heading h2) { font-size: 23px; } + :deep(.status-button) { min-height: 34px; padding-inline: 10px; font-size: 12px; } + :deep(.member-search) { flex: 0 0 auto; min-height: 44px; margin-top: 14px; padding: 0 12px; border-radius: 11px; } + :deep(.member-search input) { font-size: 15px; } + :deep(.app-shell .member-panel .member-tree) { flex: 1 1 auto; min-height: 0; max-height: none; margin-top: 12px; padding: 0 2px 4px 0; overflow-y: auto; scrollbar-gutter: stable; } + :deep(.member-channel-group) { padding: 7px 0 12px; } + :deep(.member-channel-heading) { min-height: 44px; padding: 0 9px; border-radius: 11px; font-size: 14px; } + :deep(.member-channel-heading small) { font-size: 12px; } + :deep(.member-list) { gap: 3px; margin-top: 5px; } + :deep(.member-row) { min-height: 58px; margin: 0; padding: 7px 7px; gap: 9px; border-radius: 12px; } + :deep(.member-avatar) { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; } + :deep(.member-presence) { width: 10px; height: 10px; } + :deep(.member-copy strong) { font-size: 14px; } + :deep(.member-copy span) { margin-top: 3px; font-size: 12px; } + .desktop-audio-dock, :deep(.member-flags), :deep(.member-volume), .member-panel-tip { display: none; } + :deep(.member-action-button) { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--text-muted); background: transparent; border-radius: 10px; cursor: pointer; } + :deep(.member-action-button:hover), :deep(.member-action-button:active) { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); } .app-shell.mobile-view-chat .workspace-scroll { overflow: hidden; } .app-shell.mobile-view-chat .workspace-content { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0 14px calc(8px + env(safe-area-inset-bottom, 0px)); } @@ -653,14 +653,14 @@ .mobile-nav { min-height: 74px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); } .mobile-nav button { min-height: 52px; font-size: 12px; } - .member-menu-backdrop { position: fixed; z-index: 39; inset: 0; display: block; background: rgba(13, 29, 26, .38); backdrop-filter: blur(2px); } - .member-context-menu { z-index: 40; left: 10px !important; right: 10px; top: auto !important; bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; min-width: 0; max-height: calc(100svh - 100px); padding: 12px; border-radius: 18px; box-shadow: 0 18px 42px rgba(13, 38, 33, .25); } - .member-menu-header strong { padding: 4px 8px 11px; font-size: 16px; } - .member-menu-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0 !important; color: var(--text-muted); background: var(--surface-2); border-radius: 10px; } - .member-context-menu button { min-height: 50px; padding: 8px 10px; border-radius: 10px; font-size: 14px; } - .member-context-menu .member-menu-close { min-height: 36px; } - .menu-volume { padding: 5px 8px 11px; font-size: 12px; } - .menu-volume input { height: 7px; } + :deep(.member-menu-backdrop) { position: fixed; z-index: 39; inset: 0; display: block; background: rgba(13, 29, 26, .38); backdrop-filter: blur(2px); } + :deep(.member-context-menu) { z-index: 40; left: 10px !important; right: 10px; top: auto !important; bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; min-width: 0; max-height: calc(100svh - 100px); overflow-y: auto; padding: 12px; border-radius: 18px; box-shadow: 0 18px 42px rgba(13, 38, 33, .25); } + :deep(.member-menu-header strong) { padding: 4px 8px 11px; font-size: 16px; } + :deep(.member-menu-close) { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0 !important; color: var(--text-muted); background: var(--surface-2); border-radius: 10px; } + :deep(.member-context-menu button) { min-height: 50px; padding: 8px 10px; border-radius: 10px; font-size: 14px; } + :deep(.member-context-menu .member-menu-close) { min-height: 36px; } + :deep(.menu-volume) { padding: 5px 8px 11px; font-size: 12px; } + :deep(.menu-volume input) { height: 7px; } .modal-backdrop { align-items: flex-end; padding: 0; } .settings-modal { width: 100%; max-height: calc(100svh - env(safe-area-inset-top, 0px)); border-radius: 22px 22px 0 0; } @@ -897,7 +897,7 @@ 宽度跟随聊天面板内容宽度(chat-panel 水平内边距为 0, left/right:0 即与内容宽度完全一致);chat-panel 作为包含块 并加 padding-bottom 补偿原占位,避免消息列表被遮挡。 */ - .app-shell .member-panel { position: relative; overflow: visible; padding-bottom: calc(18px + 12px + 52px); } + :deep(.app-shell .member-panel) { position: relative; overflow: visible; padding-bottom: calc(18px + 12px + 52px); } .desktop-audio-dock { position: absolute; z-index: 6; left: 18px; right: 18px; bottom: 18px; margin-top: 0; } .app-shell .chat-panel { position: relative; padding-bottom: calc(16px + 48px); } :deep(.app-shell .message-composer) { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; margin-bottom: 0; } @@ -944,11 +944,11 @@ .dock-switch-row input:checked::before, .mobile-noise-toggle input:checked::before { background: var(--surface-1); transform: translateX(14px); } .dock-switch-row input:focus-visible, .mobile-noise-toggle input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; } -.member-row[draggable="true"] { cursor: grab; touch-action: none; } -.member-row[draggable="true"]:active { cursor: grabbing; } -.member-row.dragging { opacity: .45; } -.member-channel-group.drag-over { padding: 6px 6px 12px; border: 1px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent); } -.member-channel-group.drag-over .member-channel-heading { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface-1)); } +:deep(.member-row[draggable="true"]) { cursor: grab; touch-action: none; } +:deep(.member-row[draggable="true"]:active) { cursor: grabbing; } +:deep(.member-row.dragging) { opacity: .45; } +:deep(.member-channel-group.drag-over) { padding: 6px 6px 12px; border: 1px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent); } +:deep(.member-channel-group.drag-over .member-channel-heading) { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface-1)); } @media (prefers-reduced-motion: reduce) { .dock-hover-panel, .dock-switch-row input, .mobile-noise-toggle input { transition-duration: .01ms; } @@ -1090,11 +1090,11 @@ /* Public artwork hooks have host-defined geometry. Skins can supply the art and its appearance without taking over the member rail's layout. */ -.app-shell .member-panel { +:deep(.app-shell .member-panel) { position: relative; } -.app-shell .member-panel::before { +:deep(.app-shell .member-panel::before) { content: ""; position: absolute; z-index: 1; @@ -1110,10 +1110,10 @@ pointer-events: none; } -.app-shell .member-panel-heading, -.app-shell .member-search, -.app-shell .member-tree, -.app-shell .member-empty { +:deep(.app-shell .member-panel-heading), +:deep(.app-shell .member-search), +:deep(.app-shell .member-tree), +:deep(.app-shell .member-empty) { position: relative; z-index: 2; } @@ -1195,7 +1195,7 @@ } @media (max-width: 980px) { - .app-shell .member-panel::before { + :deep(.app-shell .member-panel::before) { display: none; } } diff --git a/web/src/views/WebClient.vue b/web/src/views/WebClient.vue index 7d82f0e..a3f4125 100644 --- a/web/src/views/WebClient.vue +++ b/web/src/views/WebClient.vue @@ -206,29 +206,11 @@ - +
{{ t('mobileMore') }} @@ -272,23 +254,9 @@ -
-
-
{{ memberMenu.member.nickname }}
- - - - - -
- -
- - - {{ t('moveMemberNoChannels') }} -
-
-
+