dsh-claude-style 0.18.1 → 0.18.2-dev.38
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 +38 -2
- package/docs/STYLE.md +22 -1
- package/lib/client.js +13 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,18 +4,54 @@ All notable changes to `dsh-claude-style` are documented here, newest first.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
[中文](#cn-unreleased) | [English](#en-unreleased)
|
|
8
|
+
|
|
9
|
+
<h3 id="cn-unreleased">体验优化</h3>
|
|
10
|
+
|
|
11
|
+
- 改善会话标题的重命名:鼠标扫过顶栏标题时浮出一块底板与「重命名会话」提示,点击即可就地编辑,回车写入新名称、Esc 保持原名。
|
|
12
|
+
- 改善流式回复期间写回 token 的估算:正文按中文字符、中文标点、拉丁词、数字、空白与标点各段本身的形状计价,替换原先按宽窄字符计数的规则,估算值贴近服务商的分词结果。
|
|
13
|
+
|
|
14
|
+
### 问题修复
|
|
15
|
+
|
|
16
|
+
- 修复按住窗口框架上的文字拖动时变成划词的问题:侧栏与会话标题所在的头部不再产生选区,正文、输入框与草稿照旧可以选中。
|
|
17
|
+
|
|
18
|
+
<h3 id="en-unreleased">Improvements</h3>
|
|
19
|
+
|
|
20
|
+
- Improve renaming a session from its title: the pointer over the header title raises a plate and a tip naming the press, a click opens an editor in place, Enter writes the new name and Escape keeps the old one.
|
|
21
|
+
- Improve the written-back token estimate while an answer streams: the text is now priced by the shape of its runs — CJK characters and marks, Latin words, digits, whitespace, punctuation — in place of the wide/narrow character rule, so the figure stays close to the provider's own count.
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
- Fix a drag that starts on the window's own chrome turning into word selection: the sidebar and the conversation header take no selection, while the transcript, the fields and the draft still do.
|
|
26
|
+
|
|
27
|
+
## [0.18.2] - 2026-10-21
|
|
28
|
+
|
|
29
|
+
[中文](#cn-0.18.2) | [English](#en-0.18.2)
|
|
30
|
+
|
|
31
|
+
<h3 id="cn-0.18.2">问题修复</h3>
|
|
32
|
+
|
|
33
|
+
- 修复页面缩放不为 100% 时浮层按窗口量出的尺寸与位置都不成立:宿主自己画的会话卡片、账号菜单、上下文弹层把量到的位置直接写进坐标,在缩放下又被放大一次,开在触发控件上方的菜单还会因为自身高度是在另一个空间里量的而压在控件上;按窗口封顶的卡片同样会高出窗口一截,末尾几行读不到。现在宿主自己的浮层拿回一像素对一像素的空间,写下的长度与量到的盒子在屏幕上一致;按窗口封顶的规则改读皮肤量出的页面尺寸,不再用 vh 与 vw。
|
|
34
|
+
- 修复页面缩放不为 100% 时宿主框架的三列按窗口像素排布:宿主量框架用窗口像素,写下的列却是页面像素,右列被推出框架,左侧栏拉开后比它该有的宽度多出这一份倍率、显示不全。宿主自己的列宽现在按页面的像素重算;一列被收窄到零时这一份不换算,交给宿主原样摆放。
|
|
35
|
+
- 修复页面缩放不为 100% 时皮肤自己画的三处几何落在别处:首页的点击涟漪按窗口像素数格子却画在页面里,落在点击点的右下方;标题栏上的切换按钮在桌面窗口里量左邻控件与侧栏时混用了两种像素,站到了侧栏之外;推理档位触发器让出宽度时按窗口像素读取自己的宽度,窄卡片里算出的上限偏大。三处都改按页面自身的像素换算。
|
|
36
|
+
|
|
37
|
+
<h3 id="en-0.18.2">Bug Fixes</h3>
|
|
38
|
+
|
|
39
|
+
- Fix the cards and caps measured against the window not holding at a page scale other than 100%: the host's own session card, account menu and context popover write a measured position straight into their coordinates, which the scale then multiplies a second time, and a menu opening over its trigger lands on it because its own height was measured in the other space; a card capped against the window comes out taller than it as well, leaving its last rows unreadable. The host's own floating cards are now given a space one pixel to one pixel with the window, so a length the host writes and a box the host measures are the same length on screen, and a rule that caps a card against the window reads the page's own size instead of `vh` and `vw`.
|
|
40
|
+
- Fix the host frame's three columns being laid out in the window's pixels at a page scale other than 100%: the host measures its frame in the window's pixels and writes the columns in the page's, so the right column stands outside the frame and a sidebar dragged to a width is drawn that factor wider and shows cut off. The host's own column widths are now recomputed in the page's pixels, and a write that narrows a column to nothing is left as the host made it.
|
|
41
|
+
- Fix three pieces of the skin's own geometry landing elsewhere at a page scale other than 100%: the home page counted its ripple cells in the window's pixels while drawing them in the page's, so a press rippled down and right of where it landed; the window tab strip measured the controls and the sidebar beside it in one set of pixels and wrote the answer in another, standing outside the sidebar; and the effort trigger read its own width in the window's pixels while giving room back to the model name, so a narrow card kept a cap that was too wide. All three now convert through the page's own pixels.
|
|
42
|
+
|
|
43
|
+
Full Changelog: [v0.18.1...v0.18.2](https://github.com/Nwflower/dsh-claude-style/compare/v0.18.1...v0.18.2)
|
|
44
|
+
|
|
7
45
|
## [0.18.1] - 2026-10-21
|
|
8
46
|
|
|
9
47
|
[中文](#cn-0.18.1) | [English](#en-0.18.1)
|
|
10
48
|
|
|
11
49
|
<h3 id="cn-0.18.1">问题修复</h3>
|
|
12
50
|
|
|
13
|
-
- 修复页面缩放不为 100% 时宿主自己画的浮层偏到别处:会话行的信息卡片、宿主的菜单这类浮层把量到的位置直接写进坐标,在缩放下又被放大一次,于是偏离它所属的那一行,倍率越大偏得越远;现在这些浮层由皮肤用一段位移带回量到的位置,尺寸仍随缩放放大,回到 100% 时位移撤掉。
|
|
14
51
|
- 修复收起的一轮里,一段推理正文重新出现在最终回答中:会话行离开视口时不再参与排版,留下的是估算的高度,并占出了位置;最终回答、以及宿主收起的行已不在这条规则里。
|
|
15
52
|
|
|
16
53
|
<h3 id="en-0.18.1">Bug Fixes</h3>
|
|
17
54
|
|
|
18
|
-
- Fix the floating cards the host draws landing off their row whenever the page scale is not 100%: a card measures its anchor in the viewport's pixels and writes that box as its position, which the scale then multiplies a second time, so it drifts away from the row it belongs to by the factor of the scale. Such cards are carried back to where they were measured, keep the size the scale asks for, and lose the offset when the scale returns to 100%.
|
|
19
55
|
- Fix a stretch of reasoning reappearing inside a folded turn's final answer: rows outside the viewport left the layout to an estimate of their height and so took up room they do not take. The final answer and the rows the host has folded are no longer under that rule.
|
|
20
56
|
|
|
21
57
|
## [0.18.0] - 2026-10-21
|
package/docs/STYLE.md
CHANGED
|
@@ -387,6 +387,24 @@ address. `packages/client/src/features/composer/selection-mirror.ts` therefore m
|
|
|
387
387
|
onto `data-dsh-window-blur` and the stylesheet switches on that attribute; the
|
|
388
388
|
selection itself survives the blur.
|
|
389
389
|
|
|
390
|
+
The window's chrome is not text. The sidebar column and the conversation header
|
|
391
|
+
take `user-select: none`: a press on a row or on the session title is a gesture
|
|
392
|
+
at the window — on the Windows desktop the caption row is the shell's own drag
|
|
393
|
+
region — and the drag that follows must not paint a selection across the labels
|
|
394
|
+
it passes. The transcript, the composer's draft and a text field inside the
|
|
395
|
+
chrome keep their own selection, which Chromium grants an editing host under a
|
|
396
|
+
locked ancestor.
|
|
397
|
+
|
|
398
|
+
The session title is the session's name, and a press on it renames the session.
|
|
399
|
+
The pointer over the title's last crumb raises a plate under the words — the
|
|
400
|
+
host's own crumb already carries the padding and the radius — with a tip under
|
|
401
|
+
the segment naming the press, in the label ink on the canvas tone the usage
|
|
402
|
+
panel's day tip uses. The segment carries the tip rather than the words because
|
|
403
|
+
the host clips a crumb's overflow for its ellipsis. The press opens a field over
|
|
404
|
+
the words at the header's own size and radius, standing in the page's own space
|
|
405
|
+
so the reader's zoom keeps it on the title; a rename the host refuses keeps the
|
|
406
|
+
field, ringed in the host's error tone.
|
|
407
|
+
|
|
390
408
|
## Markdown material
|
|
391
409
|
|
|
392
410
|
A quote is a **container**, not a link: it keeps the prose face on a neutral bar
|
|
@@ -950,5 +968,8 @@ plays its reaction.
|
|
|
950
968
|
- The page's scale (settings › General) is the `zoom` the theme sheet puts on the body, so a
|
|
951
969
|
length written into the page is read in a smaller space than the one a bounding rect is
|
|
952
970
|
measured in: code that turns a measured box into a written length goes through
|
|
953
|
-
`packages/client/src/shared/page-zoom.ts`.
|
|
971
|
+
`packages/client/src/shared/page-zoom.ts`. The host's own floating cards write a measured box
|
|
972
|
+
whole: `packages/client/src/shared/page-scale.ts` gives each one a space one pixel to one
|
|
973
|
+
pixel with the window (D81), and a rule that caps a card against the window reads
|
|
974
|
+
`--dsh-claude-page-height` / `--dsh-claude-page-width` rather than `vh` / `vw`.
|
|
954
975
|
|