@tbox.cn/app-template-agent 0.10.35 → 0.10.36
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/AGENTS.md
CHANGED
|
@@ -156,6 +156,7 @@ pnpm install
|
|
|
156
156
|
2. **flex 子项设 `flex-shrink: 0`**——壳内内容宽度不定,防元素被压缩变形。
|
|
157
157
|
3. **滚动容器隐藏滚动条**(`::-webkit-scrollbar { display: none }`)——web-view 无原生滚动条,出现即破相。
|
|
158
158
|
4. **颜色用 `rgba()` 传统语法**——避免 `color-mix`/`oklch` 等新语法在低版本 web-view 内核不渲染。
|
|
159
|
+
5. **整页背景**——背景图或渐变设置在 `.chat-page__bg`,首页容器保持透明。
|
|
159
160
|
|
|
160
161
|
## 工程边界(check-workspace 校验)
|
|
161
162
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-template-agent",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.36",
|
|
4
4
|
"description": "tbox AI Agent 全栈模板(多包 pnpm workspace):apps/client + apps/server。唯一模板(W4 单一模板统一化:缺省带 AI 支付体验的 chat 形态;mall 能力经 profiles/mall 加装),能力经 CLI module add 模块扩展(shopping-guide/member 等)。",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0 <25.0.0"
|
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
background: var(--tbox-bg-page);
|
|
11
11
|
|
|
12
12
|
&__bg {
|
|
13
|
+
/* 整页背景独立于滚动内容,覆盖历史入口、首页与底部输入区。 */
|
|
13
14
|
position: absolute;
|
|
14
15
|
inset: 0;
|
|
15
16
|
z-index: 0;
|
|
16
17
|
background: var(--tbox-bg-page);
|
|
18
|
+
background-position: center;
|
|
19
|
+
background-size: cover;
|
|
20
|
+
background-repeat: no-repeat;
|
|
17
21
|
pointer-events: none;
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -50,9 +54,9 @@
|
|
|
50
54
|
margin-left: var(--tbox-page-gutter);
|
|
51
55
|
}
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
&__home-slot {
|
|
58
|
+
/* 首页子元素的外边距留在槽内,不折叠到历史入口与首页之间。 */
|
|
59
|
+
display: flow-root;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/* 对话开始后首页仍保留,消息接在联单主卡下方。 */
|