dsh-tide-theme 0.5.0 → 0.5.1

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.md CHANGED
@@ -220,7 +220,7 @@ dsh plugin --profile desktop add git+https://github.com/zdt3476/dsh-tide-theme.g
220
220
  dsh plugin --profile desktop add link:"$PWD"
221
221
 
222
222
  # GitHub Release 预构建包
223
- dsh plugin --profile desktop add https://github.com/zdt3476/dsh-tide-theme/releases/download/v0.5.0/dsh-tide-theme-0.5.0.tgz
223
+ dsh plugin --profile desktop add https://github.com/zdt3476/dsh-tide-theme/releases/download/v0.5.1/dsh-tide-theme-0.5.1.tgz
224
224
  ```
225
225
 
226
226
  安装后在 **设置 → 插件** 中启用,并按下 `Cmd/Ctrl + R` 重载客户端。
@@ -235,7 +235,7 @@ pnpm test # TypeScript 类型检查 + Vitest 单元测试(110 tests)
235
235
  pnpm build # 编译产出 lib/index.js (Host) 与 lib/client.js (Client)
236
236
  pnpm check # test + build 全量流水线检查
237
237
 
238
- # 浏览器契约测试(真实 Chromium,54 项)
238
+ # 浏览器契约测试(真实 Chromium,56 项)
239
239
  # 注意:必须逐个列出测试文件。tests/client/ 下还有 dock-stats-fixture.mjs 等夹具,
240
240
  # 用 glob 会把夹具当成测试文件从而误报失败。
241
241
  PLAYWRIGHT_MODULE=<playwright/index.mjs> CHROMIUM_EXECUTABLE=<chromium> \
package/lib/client.js CHANGED
@@ -555,10 +555,20 @@ body[data-dsh-tide-theme] ::selection {
555
555
  display: inline-flex;
556
556
  align-items: center;
557
557
  min-width: 0;
558
+ /* 座位自身必须可收缩:只给内含 pill 设 min-width:0 不够——inline-flex 父级仍被
559
+ * 内容撑开,窄容器下会把 composer 行顶出横向滚动。 */
560
+ flex: 0 1 auto;
561
+ max-width: 100%;
558
562
  }
559
563
 
560
564
  /* 座位里的原生按钮与插件按钮同规格:28px 高、13px 字号、透明底。 */
561
- [data-dsh-tide-seat] > [data-dsh-tide-dock-root] { display: inline-flex; align-items: center; gap: 2px; }
565
+ [data-dsh-tide-seat] > [data-dsh-tide-dock-root] {
566
+ display: inline-flex;
567
+ align-items: center;
568
+ gap: 2px;
569
+ min-width: 0;
570
+ max-width: 100%;
571
+ }
562
572
 
563
573
  /* 两侧等分:中间统计簇才能以卡片中心对齐(不等分时会被宽的一侧挤偏) */
564
574
  [data-dsh-tide-dock-left] {
@@ -1145,7 +1155,8 @@ body[data-dsh-tide-theme] .dsh-tide-stats-detail-list {
1145
1155
  font-size: 13px;
1146
1156
  line-height: 20px;
1147
1157
  min-width: 0;
1148
- max-width: 260px;
1158
+ /* 与 [data-dsh-tide-control='model'] 的上限保持一致,避免两处规则互相打架。 */
1159
+ max-width: 280px;
1149
1160
  }
1150
1161
 
1151
1162
  [data-dsh-tide-pill]:hover:not(:disabled) {
@@ -2411,7 +2422,11 @@ body[data-dsh-tide-theme] [data-slot='sidebar.workspaces'] [data-row-key^='works
2411
2422
  user-select: none;
2412
2423
  }
2413
2424
  [data-dsh-tide-control='effort'] { flex: none; }
2414
- [data-dsh-tide-control='model'] { max-width: 240px; }
2425
+ /* 「供应商 / 模型」常见组合(如 WorkBuddy / Deepseek-V4.1-Flash)自然宽约 244px,
2426
+ * 240px 的上限会差 4px 触发省略号,让唯一的截断控件显得与同行其他控件不协调。
2427
+ * 宽屏取 280px 覆盖常见标签;窄屏按视口收紧上限(见文件末尾的窄屏断点),
2428
+ * 超长名仍由 ellipsis 兜底,三种情况都不会撑破 composer 行。 */
2429
+ [data-dsh-tide-control='model'] { max-width: 280px; flex: 0 1 auto; }
2415
2430
 
2416
2431
  [data-dsh-tide-filter] {
2417
2432
  appearance: none;
@@ -3056,6 +3071,20 @@ body:not([data-ds-dark-theme]) [data-dsh-tide-pill][aria-expanded='true'],
3056
3071
  body:not([data-ds-dark-theme]) [data-dsh-tide-pill][aria-expanded='true']:hover:not(:disabled) {
3057
3072
  color: var(--dsw-alias-label-primary);
3058
3073
  }
3074
+
3075
+ /* —— 窄视口:模型 pill 上限随视口收紧,保证 composer 行不产生横向溢出 ——
3076
+ * 280px 只在宽屏需要(完整显示常见标签);窄屏继续沿用会挤掉权限与思考等级控件。 */
3077
+ @media (max-width: 640px) {
3078
+ [data-dsh-tide-control='model'] {
3079
+ max-width: 180px;
3080
+ }
3081
+ }
3082
+
3083
+ @media (max-width: 420px) {
3084
+ [data-dsh-tide-control='model'] {
3085
+ max-width: 140px;
3086
+ }
3087
+ }
3059
3088
  `;
3060
3089
  //#endregion
3061
3090
  //#region src/client/legacy-migration.ts
@@ -5950,7 +5979,7 @@ body:not([data-ds-dark-theme]) [data-dsh-tide-pill][aria-expanded='true']:hover:
5950
5979
  * ModuleLoader 壳提供,这正是 tsdown client 构建保持 require 的原因。
5951
5980
  */
5952
5981
  const PLUGIN_ID = "dsh-tide-theme";
5953
- const BUILD = "0.5.0+2026-11-02T17:33:05.904Z";
5982
+ const BUILD = "0.5.1+2026-11-03T01:24:23.441Z";
5954
5983
  const name = PLUGIN_ID;
5955
5984
  const inject = [
5956
5985
  "slots",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** dsh-tide-theme v0.5.0 — 潮汐主题(Tide Theme)——给 DeepSeek Harness 的深海潮汐主题,遵循 workbuddy-design 现代克制设计规范,附带侧栏分页与筛选、输入框下方模型/权限控件、底栏性能 HUD、子代理委派图等界面增强。 */
1
+ /** dsh-tide-theme v0.5.1 — 潮汐主题(Tide Theme)——给 DeepSeek Harness 的深海潮汐主题,遵循 workbuddy-design 现代克制设计规范,附带侧栏分页与筛选、输入框下方模型/权限控件、底栏性能 HUD、子代理委派图等界面增强。 */
2
2
  //#region src/host/index.ts
3
3
  /**
4
4
  * 潮汐主题 —— Host 侧入口。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tide-theme",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"