@weniatall/dsh-file-viewer 0.2.6 → 0.2.8

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
@@ -59,6 +59,8 @@ dsh plugin --profile web add <release-tgz-url>
59
59
 
60
60
  手机端抽屉占满全屏,文件列表与内容单列切换(左上角 `‹` 返回列表)。
61
61
 
62
+ 桌面端(Windows)抽屉会自动避让窗口右上角的原生标题栏按钮(最小化 / 最大化 / 关闭):宿主在 `<html>` 上标记 `data-windows-titlebar` 并给出 `--dsh-windows-titlebar-height`,抽屉顶部从其下方开始,因此标题栏里的图标不会再压在窗口按钮下面;窗口进入全屏后该条带消失,抽屉相应贴到顶边。
63
+
62
64
  ## 访问边界与安全访问路径
63
65
 
64
66
  插件**内置可访问**所有**已注册的工作区目录**以及**各会话的工作目录**。
package/lib/client.js CHANGED
@@ -302,6 +302,15 @@ window.__ModuleLoader__.load({
302
302
  .fv-scrim{position:absolute;inset:0;z-index:40;display:flex;align-items:stretch;justify-content:flex-end;background:transparent;pointer-events:auto;color-scheme:light dark;animation:fv-fade .16s ease-out}
303
303
  .fv-shell{display:flex;flex-direction:column;width:min(64vw,1100px);min-width:0;min-height:0;overflow:hidden;border-left:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff));box-shadow:var(--dsw-shadow-lv3);font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary);animation:fv-slide .2s cubic-bezier(.2,.8,.2,1);transition:width .2s cubic-bezier(.2,.8,.2,1)}
304
304
  .fv-shell[data-fullscreen="true"]{width:100vw;border-left:none}
305
+ /* Windows desktop paints the native caption buttons (minimize, maximize,
306
+ close) in a strip across the top of the window, above every page layer.
307
+ The shell's overlay seat spans the whole frame — padding box included —
308
+ so a trailing-edge drawer would start underneath that strip and its
309
+ header controls could never be clicked. Start the drawer below the
310
+ strip instead, which also leaves the strip free to drag the window.
311
+ The host sets data-fullscreen while the window is fullscreen and the
312
+ strip is hidden, so the offset has to drop then. */
313
+ html[data-windows-titlebar]:not([data-fullscreen]) .fv-scrim{top:var(--dsh-windows-titlebar-height,40px)}
305
314
  @keyframes fv-fade{from{opacity:0}to{opacity:1}}
306
315
  @keyframes fv-slide{from{transform:translateX(100%)}to{transform:translateX(0)}}
307
316
  @media(prefers-reduced-motion:reduce){.fv-scrim,.fv-shell{animation:none}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weniatall/dsh-file-viewer",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Workspace file viewer for DeepSeek Harness: file tree, syntax-highlighted code with language detection and manual override, images, PDF, Excel and Word",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",