mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
style: include KAAK connection password field
This commit is contained in:
1 parent
53324ef02b
commit
05220b7a6e
5 files changed
+36
-1
No files matched your search
@@ -626,5 +626,5 @@
|
||||
## 本轮密码对话框样式(2026-10-12)
|
||||
|
||||
- 用户要求服务器密码和频道密码都按截图改成 KAAK 深色紧凑弹窗。
|
||||
- 两个宿主对话框增加稳定的 `auth.password.*` 皮肤钩子;KAAK 包负责尺寸、深色表面、字段、按钮与移动视口样式。密码输入、错误文案、关闭、取消、提交和服务器重试仍使用原宿主逻辑,其他皮肤不变。KAAK 升至 3.1.78。
|
||||
- 两个宿主对话框增加稳定的 `auth.password.*` 皮肤钩子;KAAK 包负责尺寸、深色表面、字段、按钮与移动视口样式。KAAK 连接表单中的服务器密码字段也使用同款深色输入外观。密码输入、错误文案、关闭、取消、提交和服务器重试仍使用原宿主逻辑,其他皮肤不变。KAAK 升至 3.1.78。
|
||||
- 验证:重建示例和内置 KAAK 包;皮肤包与布局钩子测试通过,`npm run verify` 通过(696/696 测试、服务端构建、前端类型检查和 Vite 生产构建),`git diff --check` 通过。3040 健康接口、入口页、WebClient JS/CSS 和新版 KAAK 包均返回 HTTP 200;皮肤包大小与构建产物一致。
|
||||
Binary file not shown.
@@ -3185,6 +3185,40 @@
|
||||
background: #242529;
|
||||
box-shadow: 0 0 0 2px rgba(108, 191, 0, .2);
|
||||
}
|
||||
[data-ws-part="home.form"] [data-ws-part="home.field"]:has(input[type="password"]) {
|
||||
box-sizing: border-box;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
gap: 0;
|
||||
padding: 0 15px;
|
||||
color: #d6d7db;
|
||||
border: 1px solid #3b3c40;
|
||||
border-radius: 12px;
|
||||
background: #242529;
|
||||
transition: border-color .16s ease, box-shadow .16s ease;
|
||||
}
|
||||
[data-ws-part="home.form"] [data-ws-part="home.field"]:has(input[type="password"]):focus-within {
|
||||
border-color: #6cbf00;
|
||||
background: #242529;
|
||||
box-shadow: 0 0 0 2px rgba(108, 191, 0, .2);
|
||||
}
|
||||
[data-ws-part="home.form"] [data-ws-part="home.field"]:has(input[type="password"]) > svg {
|
||||
display: none;
|
||||
}
|
||||
[data-ws-part="home.form"] [data-ws-part="home.field"]:has(input[type="password"]) input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
color: #f0f1f3;
|
||||
outline: none;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
}
|
||||
[data-ws-part="home.form"] [data-ws-part="home.field"]:has(input[type="password"]) input::placeholder {
|
||||
color: #777980;
|
||||
}
|
||||
[data-ws-part="auth.password.field"] input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
|
||||
Binary file not shown.
@@ -588,6 +588,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.match(skin.css, /\[data-ws-part="auth\.password\.dialog"\]\s*\{[^}]*width: min\(438px, calc\(100vw - 32px\)\);[^}]*min-height: 204px;[^}]*background: #242529;/);
|
||||
assert.match(skin.css, /\[data-ws-part="auth\.password\.title"\]\s*\{[^}]*font-size: 13px;[^}]*font-weight: 700;/);
|
||||
assert.match(skin.css, /\[data-ws-part="auth\.password\.field"\]\s*\{[^}]*height: 40px;[^}]*border: 1px solid #3b3c40;[^}]*border-radius: 12px;/);
|
||||
assert.match(skin.css, /\[data-ws-part="home\.form"\] \[data-ws-part="home\.field"\]:has\(input\[type="password"\]\)\s*\{[^}]*height: 40px;[^}]*border-radius: 12px;[^}]*background: #242529;/);
|
||||
assert.match(skin.css, /\[data-ws-part="auth\.password\.actions"\] > button:last-child\s*\{[^}]*width: 82px;[^}]*height: 36px;[^}]*background: #6cbf00;/);
|
||||
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock"\] \{[\s\S]*?width: min\(282px, calc\(100% - 22px\)\);[\s\S]*?margin-bottom: 11px;[\s\S]*?border-radius: 17px;/);
|
||||
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-actions"\] \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 28px 28px 36px;[\s\S]*?grid-template-rows: 29px 26px;[\s\S]*?row-gap: 21px;/);
|
||||
|
||||
Reference in new issue
Block a user