dsh-desktop-enhance 0.10.8 → 0.10.9
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/lib/client.js +8 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -8816,6 +8816,10 @@ ABORT_ERR ETIMEDOUT ECONNREFUSED ECONNRESET EPIPE EADDRINUSE ENOSPC EACCES STORE
|
|
|
8816
8816
|
}
|
|
8817
8817
|
//#endregion
|
|
8818
8818
|
//#region src/client/mobile/styles.ts
|
|
8819
|
+
const MOBILE_VIEWPORT_HEIGHT = "var(--desktop-enhance-viewport-height,100dvh)";
|
|
8820
|
+
const overlayMaxHeight = (available) => `min(400px,max(0px,calc(${available})))`;
|
|
8821
|
+
const COMPOSER_OVERLAY_MAX_HEIGHT = overlayMaxHeight(`${MOBILE_VIEWPORT_HEIGHT} - var(--dsh-composer-height,0px) - 84px`);
|
|
8822
|
+
const HERO_OVERLAY_MAX_HEIGHT = overlayMaxHeight(`(${MOBILE_VIEWPORT_HEIGHT} - 84px) / 2`);
|
|
8819
8823
|
const ADAPT_CSS = [
|
|
8820
8824
|
"html:has(body.dsh-remote-portrait){overflow:hidden;overscroll-behavior:none}",
|
|
8821
8825
|
"body.dsh-remote-portrait{position:fixed;inset:var(--desktop-enhance-viewport-top,0px) 0 auto;width:100%;height:var(--desktop-enhance-viewport-height,100%);overflow:hidden;overscroll-behavior:none}",
|
|
@@ -8881,7 +8885,10 @@ ABORT_ERR ETIMEDOUT ECONNREFUSED ECONNRESET EPIPE EADDRINUSE ENOSPC EACCES STORE
|
|
|
8881
8885
|
"[class$=\"_composerSeat\"] [class$=\"_placeholder\"]{font-size:14px;line-height:22px;inset:2px 8px auto 12px}",
|
|
8882
8886
|
"[class$=\"_composerSeat\"] [class$=\"_dock\"]{padding-top:2px;gap:8px}",
|
|
8883
8887
|
"[class$=\"_composerSeat\"]{transform:none !important}",
|
|
8884
|
-
|
|
8888
|
+
`body.dsh-remote-portrait [data-composer-seat] [data-trigger-menu]{max-height:${COMPOSER_OVERLAY_MAX_HEIGHT} !important}`,
|
|
8889
|
+
"body.dsh-remote-portrait [data-composer-card] .dsh-codex-quota-root{position:static}",
|
|
8890
|
+
`body.dsh-remote-portrait [data-composer-card] .dsh-codex-quota-popover{left:auto;right:0;bottom:calc(100% + 8px);width:min(280px,100%);max-height:${COMPOSER_OVERLAY_MAX_HEIGHT};overflow-y:auto}`,
|
|
8891
|
+
`body.dsh-remote-portrait [data-phase="hero"] [data-composer-card] .dsh-codex-quota-popover{max-height:${HERO_OVERLAY_MAX_HEIGHT}}`,
|
|
8885
8892
|
"[class$=\"_composerSeat\"] [data-slot=\"conversation.composer.dock\"] [class$=\"_root\"]{font-size:10px;white-space:normal;word-break:break-word;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;line-height:13px;letter-spacing:-0.2px;padding-left:0;padding-right:0}",
|
|
8886
8893
|
"[class*=\"_bubble\"][role=\"tooltip\"]{display:none}",
|
|
8887
8894
|
"[class$=\"_composerSeat\"] [class$=\"_frame\"]{box-sizing:border-box;width:100%;max-width:100%;padding-left:12px;padding-right:12px;height:auto;max-height:calc(100dvh - 96px);align-items:flex-start;overflow-y:auto}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-desktop-enhance",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"description": "DSH Desktop 界面增强:页内查找(Cmd+F)、轮次编号、上下文压缩行常显、建议、每步耗时、折叠文件夹状态计数、会话信息(含上下文注入 C1 视图)、工具管理、Skill 管理、独立远程接入与手机体验,以及智能建议、会话能力和远程接入的持久诊断日志。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|