dsh-session-relocate 0.2.6 → 0.2.7
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/docs/shared-footer-bar.md +4 -0
- package/lib/client.js +6 -0
- package/package.json +1 -1
|
@@ -92,6 +92,10 @@ body.dshsm-selecting [class*="_footArea"] > *:not([class*="_footerActions"]){dis
|
|
|
92
92
|
/* 别家插件的页脚按钮让位 */
|
|
93
93
|
body.dshsm-selecting [data-slot="sidebar.footer.action"] > [data-dsh-plugin]{display:none}
|
|
94
94
|
|
|
95
|
+
/* 按钮型入口一律让位(.dhns-footer-btn 这类没带 data-dsh-plugin 的)
|
|
96
|
+
槽入口无包装层,'> button' 精确命中按钮型入口;:not([role="toolbar"]) 保证藏不到底栏自己 */
|
|
97
|
+
body.dshsm-selecting [data-slot="sidebar.footer.action"] > button:not([role="toolbar"]){display:none}
|
|
98
|
+
|
|
95
99
|
/* entryRow 那个容器不带 data-dsh-plugin,单独点名 */
|
|
96
100
|
body.dshsm-selecting [data-slot="sidebar.footer.action"] > [class*="_entryRow"]{display:none}
|
|
97
101
|
```
|
package/lib/client.js
CHANGED
|
@@ -57,6 +57,12 @@ window.__ModuleLoader__.load({
|
|
|
57
57
|
'body.dshsm-selecting [class*="_footArea"] > *:not([class*="_footerActions"]){display:none}',
|
|
58
58
|
'body.dshsm-selecting [data-slot="sidebar.footer.action"] > [data-dsh-plugin]{display:none}',
|
|
59
59
|
'body.dshsm-selecting [data-slot="sidebar.footer.action"] > [class*="_entryRow"]{display:none}',
|
|
60
|
+
// 页脚里的「按钮型」入口也要让位。槽入口是**无包装层**的直接子节点
|
|
61
|
+
// (renderer 的 SlotOutlet 是 <div data-slot style="display:contents">,入口组件直接挂成子节点),
|
|
62
|
+
// 所以 '> button' 精确命中按钮型入口 —— 例如 dsh-sidebar-declutter 的 .dhns-footer-btn,
|
|
63
|
+
// 它没带 data-dsh-plugin,上面两条规则都漏了它,多选时会和底栏挤在同一行。
|
|
64
|
+
// :not([role="toolbar"]) 保证永远藏不到底栏自己(两家底栏都是 div + role="toolbar")。
|
|
65
|
+
'body.dshsm-selecting [data-slot="sidebar.footer.action"] > button:not([role="toolbar"]){display:none}',
|
|
60
66
|
'.dshsm-picker-backdrop{position:fixed;inset:0;z-index:2147483602;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.42)}',
|
|
61
67
|
'.dshsm-picker{width:min(440px,92vw);max-height:70vh;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:14px;border:1px solid transparent;box-shadow:0 18px 48px rgba(0,0,0,.36)}',
|
|
62
68
|
'.dshsm-picker.dshsm-dark{background:#1f232b;color:#f2f3f5;border-color:rgba(255,255,255,.18);color-scheme:dark}',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-relocate",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "跨工作区移动 DSH 对话:把某个 Session 的日志文件与工作区归属整体搬到另一个工作区(可自动注册新工作区)。带日志级崩溃恢复的安全事务,并且会先安全释放「已打开但空闲」的会话 —— 所以正在打开的对话也能直接搬,不需要重启 DSH。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/plugin.js",
|