cortico-world-fish-sing 0.4.18 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/);版本号遵循语义化。
|
|
4
4
|
|
|
5
|
+
## [0.4.20] - 2026-11-05
|
|
6
|
+
|
|
7
|
+
### 修复
|
|
8
|
+
- **训练页三个折叠块贴左(进度条却居中)**:`.fs-sec` 上写了 `margin:10px 0`,把宿主 `.panelslot > :where(...)` 里的 `margin-right/left:auto` 覆盖成 0,块就不再居中了——而 `.fs-prog` / `.fs-msg` 没有 margin,所以照常居中。改成 `margin-block:10px`,水平方向留给宿主的 auto。这是 .fs-wrap 这些"宽度"改动一直没解决的真凶:问题不在 width,在水平 margin。
|
|
9
|
+
|
|
10
|
+
## [0.4.19] - 2026-11-05
|
|
11
|
+
|
|
12
|
+
### 修复
|
|
13
|
+
- 面板满宽再补一层兜底:`.fs-wrap` 加上 `flex:1 1 auto; align-self:stretch`。之前只有 `width:100%`,如果宿主把面板塞进一个**收缩成内容宽**的 flex/grid 容器里,百分比会解析成 auto,结果就是"内容按最宽的子元素缩起来、靠左"。现在块 / flex / grid 三种父容器都能撑满。
|
|
14
|
+
- (0.4.18 的 `max-width` 移除保留:宽度上限仍交给宿主的 `--content-width`。)
|
|
15
|
+
|
|
5
16
|
## [0.4.18] - 2026-11-05
|
|
6
17
|
|
|
7
18
|
### 修复
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
const CSS = `
|
|
13
|
-
.fs-wrap{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;box-sizing:border-box;font:13px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
13
|
+
.fs-wrap{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;box-sizing:border-box;flex:1 1 auto;align-self:stretch;font:13px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
14
14
|
/* 宽度交给宿主:.panelslot > :where(...) 已经给了 width:100% + max-width:var(--content-width)=1120px。
|
|
15
15
|
自己再写 max-width(比如 980px)会把宿主规则覆盖掉,看起来"没占满";写 none 又会被 overflow 裁掉。
|
|
16
16
|
这里只补 box-sizing——根元素带 padding 时不加它会把盒子撑出容器,内容往左溢出(dev-guide 里点名的坑)。 */
|
|
@@ -685,8 +685,11 @@ function mountModels(ctx) {
|
|
|
685
685
|
|
|
686
686
|
const TRAIN_STYLE_ID = 'fish-sing-train-style';
|
|
687
687
|
const TRAIN_CSS = `
|
|
688
|
-
/*
|
|
689
|
-
.
|
|
688
|
+
/* 分步折叠:新用户只看得到当前该做什么,老手展开就有全部东西。
|
|
689
|
+
注意:这三块是 .panelslot 的直接子元素,宿主靠 margin-right/left:auto 把它们居中;
|
|
690
|
+
这里只能写 margin-block,写 margin:10px 0 会把左右 auto 覆盖成 0,整块就贴左了
|
|
691
|
+
(0.4.19 之前的真实症状:进度条居中、三块贴左)。 */
|
|
692
|
+
.fs-sec{margin-block:10px;border:1px solid rgba(127,127,127,.22);border-radius:10px;
|
|
690
693
|
background:rgba(127,127,127,.035);overflow:hidden}
|
|
691
694
|
.fs-sec>summary{cursor:pointer;padding:9px 12px;font-size:13px;font-weight:600;
|
|
692
695
|
display:flex;align-items:center;gap:8px;list-style:none;user-select:none}
|
package/dist/webui.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
const CSS = `
|
|
13
|
-
.fs-wrap{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;box-sizing:border-box;font:13px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
13
|
+
.fs-wrap{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;box-sizing:border-box;flex:1 1 auto;align-self:stretch;font:13px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
14
14
|
/* 宽度交给宿主:.panelslot > :where(...) 已经给了 width:100% + max-width:var(--content-width)=1120px。
|
|
15
15
|
自己再写 max-width(比如 980px)会把宿主规则覆盖掉,看起来"没占满";写 none 又会被 overflow 裁掉。
|
|
16
16
|
这里只补 box-sizing——根元素带 padding 时不加它会把盒子撑出容器,内容往左溢出(dev-guide 里点名的坑)。 */
|
|
@@ -685,8 +685,11 @@ function mountModels(ctx) {
|
|
|
685
685
|
|
|
686
686
|
const TRAIN_STYLE_ID = 'fish-sing-train-style';
|
|
687
687
|
const TRAIN_CSS = `
|
|
688
|
-
/*
|
|
689
|
-
.
|
|
688
|
+
/* 分步折叠:新用户只看得到当前该做什么,老手展开就有全部东西。
|
|
689
|
+
注意:这三块是 .panelslot 的直接子元素,宿主靠 margin-right/left:auto 把它们居中;
|
|
690
|
+
这里只能写 margin-block,写 margin:10px 0 会把左右 auto 覆盖成 0,整块就贴左了
|
|
691
|
+
(0.4.19 之前的真实症状:进度条居中、三块贴左)。 */
|
|
692
|
+
.fs-sec{margin-block:10px;border:1px solid rgba(127,127,127,.22);border-radius:10px;
|
|
690
693
|
background:rgba(127,127,127,.035);overflow:hidden}
|
|
691
694
|
.fs-sec>summary{cursor:pointer;padding:9px 12px;font-size:13px;font-weight:600;
|
|
692
695
|
display:flex;align-items:center;gap:8px;list-style:none;user-select:none}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-fish-sing",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.20",
|
|
4
4
|
"description": "让她真的开口唱:B 站点歌或本地文件 → 分离 → 换声 → 混音,本机出声或发 QQ 语音条",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"local"
|
|
37
37
|
],
|
|
38
38
|
"describe": "describe.json",
|
|
39
|
-
"webUiClient": "dist/webui-
|
|
39
|
+
"webUiClient": "dist/webui-f4daa0a9.js"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"doctor": "node tools/doctor.mjs"
|