beauticode-dsh 1.0.28 → 1.0.29
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/README.zh-CN.md +4 -0
- package/atmosphere.js +7 -1
- package/client.js +2 -1
- package/package.json +1 -1
package/README.zh-CN.md
CHANGED
|
@@ -64,3 +64,7 @@ npx @deepseek-ai/dsh web
|
|
|
64
64
|
4. 打开页面后在「设置」里点「背景」,或输入 `/bg <本机绝对路径>`,或直接跟 AI 说把某个视频/图片设为背景。
|
|
65
65
|
|
|
66
66
|
安全边界:DSH Web 必须绑定本机回环地址;控制端点需要随机令牌;媒体 URL 仅允许带令牌的回环 HTTP 地址;浏览器回执只接受同源请求。
|
|
67
|
+
|
|
68
|
+
## 1.0.29 背景修复
|
|
69
|
+
|
|
70
|
+
画窗现在响应背景磨砂和阴影滑块,并随 DSH 深浅色切换遮罩。背景模式保留宿主的渐隐滚动内容,修复长思考展开后的持续抖动(#86、#87)。
|
package/atmosphere.js
CHANGED
|
@@ -74,6 +74,11 @@
|
|
|
74
74
|
#beauticode-gallery-bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#0b1018}
|
|
75
75
|
#beauticode-gallery-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;display:block;pointer-events:none;z-index:0;image-rendering:auto;-webkit-backface-visibility:hidden}
|
|
76
76
|
#beauticode-gallery-bg canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;mix-blend-mode:soft-light;opacity:.32}
|
|
77
|
+
/* Gallery replaces the ordinary media stage: consume the same preferences
|
|
78
|
+
here, with the dim layer above water highlights and below foreground UI (#86). */
|
|
79
|
+
html[data-bc-gallery="true"][data-bc-bg-blur="true"] #beauticode-gallery-bg img{filter:blur(var(--bc-bg-blur,0px))}
|
|
80
|
+
html[data-bc-gallery="true"][data-bc-dim-user="true"] #beauticode-gallery-bg::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:rgba(0,0,0,var(--bc-dim))}
|
|
81
|
+
html[data-bc-gallery="true"][data-bc-dim-user="true"][data-bc-resolved-tone="light"] #beauticode-gallery-bg::after{background:rgba(255,255,255,var(--bc-dim))}
|
|
77
82
|
html[data-bc-gallery="true"] #beauticode-bg-stage{background:transparent!important}
|
|
78
83
|
html[data-bc-gallery="true"] #beauticode-bg-stage::after{display:none!important;background:transparent!important}
|
|
79
84
|
html[data-bc-gallery="true"],html[data-bc-gallery="true"] body{background:transparent!important}
|
|
@@ -92,7 +97,8 @@ html[data-bc-resolved-tone="light"][data-bc-gallery="true"] body{
|
|
|
92
97
|
--dsw-specific-sidebar-fill:rgba(255,255,255,.36);
|
|
93
98
|
}
|
|
94
99
|
html[data-bc-gallery="true"] #root{position:relative;z-index:1;background:transparent!important}
|
|
95
|
-
|
|
100
|
+
/* Native fade classes belong to scroll content, not decorative overlays.
|
|
101
|
+
Hiding them feeds zero geometry back into DSH's ResizeObserver loop (#87). */
|
|
96
102
|
html[data-bc-gallery="true"] #beauticode-bg-stage img,
|
|
97
103
|
html[data-bc-gallery="true"] #beauticode-bg-stage video{opacity:0!important}
|
|
98
104
|
html[data-bc-fish="true"] #root{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
|
package/client.js
CHANGED
|
@@ -210,7 +210,8 @@ html[data-bc-bg-blur="true"] #beauticode-bg-stage .beauticode-media-slot video{
|
|
|
210
210
|
}
|
|
211
211
|
@media (prefers-reduced-motion:reduce){#beauticode-bg-stage .beauticode-media-slot,#beauticode-bg-stage .beauticode-media-slot img,#beauticode-bg-stage .beauticode-media-slot video{transition:none!important}}
|
|
212
212
|
html[data-bc-active="true"] #root{position:relative;z-index:1;background:transparent!important}
|
|
213
|
-
|
|
213
|
+
/* Preserve DSH's native fading scroll bodies; hiding them causes the
|
|
214
|
+
ResizeObserver to alternate content between visible and zero height (#87). */
|
|
214
215
|
html[data-bc-fish="true"] #root{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
|
|
215
216
|
`;
|
|
216
217
|
document.head.append(style);
|