feat(ui): 单标签窗格隐藏标签栏,收敛纵向层级 (REQ-20261117-0013)
单列窗格此前叠了三层纵向装饰:外层标题栏 splitBar(26px) + 窗格标题条 paneBar(22px) + 标签栏 tabBar(~22px),单标签时合计约 70px 纯装饰。 - PaneBody:原 singleConsole 只对控制室隐藏标签栏,推广为「唯一标签即隐藏」 - renderPane:标签栏隐藏后标签上的 ✕ 一并消失,把关闭入口移进窗格标题条 (新增 .dsh-wt_paneTabClose,位于折叠/标注按钮左侧) - 窗格标题条改显示当前标签名,比「窗口N」位置编号有信息量; pane.title 数据层不动 —— windowLabelOf 与 CustomPane 仍靠它给自定义 窗口会话命名(标注/派活依赖) - 版本 0.5.2-local.6 -> 0.5.3-local.1 验证:build 通过;client-factory-gate 10/10;sidebar-popup、update-check 全通过;host-input 15/15、session-compat 22/22、update-check 11/11(与基线一致)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dsh-worktable",
|
"name": "dsh-worktable",
|
||||||
"description": "工作台:DSH 侧边栏的 agent 级项目容器,收纳如 TravelAtlas 等自装项目",
|
"description": "工作台:DSH 侧边栏的 agent 级项目容器,收纳如 TravelAtlas 等自装项目",
|
||||||
"version": "0.5.2-local.6",
|
"version": "0.5.3-local.1",
|
||||||
"entry": {
|
"entry": {
|
||||||
"name": "dsh-worktable",
|
"name": "dsh-worktable",
|
||||||
"inject": []
|
"inject": []
|
||||||
|
|||||||
@@ -7897,6 +7897,10 @@ var css = xterm_default + "\n" + [
|
|||||||
".dsh-wt_paneBar{flex:none;display:flex;align-items:center;height:22px;padding:0 8px;border-bottom:1px solid var(--dsw-alias-border-l1,#262b36);background:var(--dsw-alias-fill-l1,rgba(255,255,255,.02))}",
|
".dsh-wt_paneBar{flex:none;display:flex;align-items:center;height:22px;padding:0 8px;border-bottom:1px solid var(--dsw-alias-border-l1,#262b36);background:var(--dsw-alias-fill-l1,rgba(255,255,255,.02))}",
|
||||||
".dsh-wt_paneBar{padding-right:26px}",
|
".dsh-wt_paneBar{padding-right:26px}",
|
||||||
".dsh-wt_paneTitle{flex:1;min-width:0;font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary,#9aa4b2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
".dsh-wt_paneTitle{flex:1;min-width:0;font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary,#9aa4b2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
||||||
|
// REQ-20261117-0013:唯一标签时标签栏不渲染,关闭按钮改由窗格标题条承载。
|
||||||
|
// 放在折叠/标注按钮左侧,避开它们占用的右上角(right 14px / 36px)。
|
||||||
|
".dsh-wt_paneTabClose{position:absolute;top:2px;right:58px;z-index:2;width:18px;height:18px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#6e7683);font-size:10px;line-height:1;cursor:pointer}",
|
||||||
|
".dsh-wt_paneTabClose:hover{color:var(--dsw-alias-label-primary,#e6e8eb);background:var(--dsw-alias-fill-l2,rgba(255,255,255,.09));border-color:var(--dsw-alias-border-l1,#262b36)}",
|
||||||
// 窗格折叠按钮:常态只是一个折角小标签(无底色无描边),hover 才显示按钮范围(底+描边)
|
// 窗格折叠按钮:常态只是一个折角小标签(无底色无描边),hover 才显示按钮范围(底+描边)
|
||||||
".dsh-wt_collapseBtn{position:absolute;top:2px;right:14px;z-index:2;width:18px;height:18px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#6e7683);cursor:pointer}",
|
".dsh-wt_collapseBtn{position:absolute;top:2px;right:14px;z-index:2;width:18px;height:18px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#6e7683);cursor:pointer}",
|
||||||
".dsh-wt_collapseBtn:hover{color:var(--dsw-alias-label-primary,#e6e8eb);background:var(--dsw-alias-fill-l2,rgba(255,255,255,.09));border-color:var(--dsw-alias-border-l1,#262b36)}",
|
".dsh-wt_collapseBtn:hover{color:var(--dsw-alias-label-primary,#e6e8eb);background:var(--dsw-alias-fill-l2,rgba(255,255,255,.09));border-color:var(--dsw-alias-border-l1,#262b36)}",
|
||||||
@@ -9160,7 +9164,7 @@ var CHANGELOG_V030 = `\u66F4\u65B0\u516C\u544A \xB7 v0.5.1
|
|||||||
\u30103.1 \u6587\u5B57\u4E0E\u7EC6\u8282\u6253\u78E8\u3011\u5168\u5C40\u5B57\u4F53\u4E0E\u5B57\u53F7\u7EDF\u4E00\u4F18\u5316\u3001\u4E0B\u62C9\u9762\u677F\u73BB\u7483\u5316\u4E0E\u5BF9\u9F50\u3001\u83DC\u5355\u70B9\u9009\u540E\u4FDD\u6301\u6253\u5F00\u4FBF\u4E8E\u8FDE\u7EED\u9884\u89C8\u3001\u6309\u94AE\u63CF\u8FB9\u4E0E\u60AC\u505C\u53CD\u9988\u7B49\u4EA4\u4E92\u7EC6\u8282\uFF1B\u540C\u65F6\u4FEE\u590D\u4E86\u591A\u9879\u4F53\u9A8C\u95EE\u9898\uFF08\u7167\u7247\u4E0A\u4F20\u6E05\u6670\u5EA6\u3001\u80CC\u666F\u7F51\u683C\u7EBF\u5728\u7167\u7247\u6A21\u5F0F\u4E0B\u4E0D\u751F\u6548\u3001\u6D45\u8272\u4E3B\u9898\u4E0B\u5DE5\u4F5C\u72B6\u6001\u5149\u6548\u4E0D\u53EF\u89C1\u7B49\uFF09\u3002`;
|
\u30103.1 \u6587\u5B57\u4E0E\u7EC6\u8282\u6253\u78E8\u3011\u5168\u5C40\u5B57\u4F53\u4E0E\u5B57\u53F7\u7EDF\u4E00\u4F18\u5316\u3001\u4E0B\u62C9\u9762\u677F\u73BB\u7483\u5316\u4E0E\u5BF9\u9F50\u3001\u83DC\u5355\u70B9\u9009\u540E\u4FDD\u6301\u6253\u5F00\u4FBF\u4E8E\u8FDE\u7EED\u9884\u89C8\u3001\u6309\u94AE\u63CF\u8FB9\u4E0E\u60AC\u505C\u53CD\u9988\u7B49\u4EA4\u4E92\u7EC6\u8282\uFF1B\u540C\u65F6\u4FEE\u590D\u4E86\u591A\u9879\u4F53\u9A8C\u95EE\u9898\uFF08\u7167\u7247\u4E0A\u4F20\u6E05\u6670\u5EA6\u3001\u80CC\u666F\u7F51\u683C\u7EBF\u5728\u7167\u7247\u6A21\u5F0F\u4E0B\u4E0D\u751F\u6548\u3001\u6D45\u8272\u4E3B\u9898\u4E0B\u5DE5\u4F5C\u72B6\u6001\u5149\u6548\u4E0D\u53EF\u89C1\u7B49\uFF09\u3002`;
|
||||||
|
|
||||||
// src/client/updateCheck.ts
|
// src/client/updateCheck.ts
|
||||||
var LOCAL_VERSION = false ? "dev" : "0.5.2-local.6";
|
var LOCAL_VERSION = false ? "dev" : "0.5.3-local.1";
|
||||||
var UPDATE_REPO = "Aisland-SJL/dsh-worktable";
|
var UPDATE_REPO = "Aisland-SJL/dsh-worktable";
|
||||||
var K_UPDATE_CHECK = "dsh.worktable.updateCheck.v1";
|
var K_UPDATE_CHECK = "dsh.worktable.updateCheck.v1";
|
||||||
var K_LAST_CHECK = "dsh.worktable.lastUpdateCheck.v1";
|
var K_LAST_CHECK = "dsh.worktable.lastUpdateCheck.v1";
|
||||||
@@ -19825,9 +19829,9 @@ function PaneBody(props) {
|
|||||||
setReloadKeys((m) => ({ ...m, [t.id]: (m[t.id] ?? 0) + 1 }));
|
setReloadKeys((m) => ({ ...m, [t.id]: (m[t.id] ?? 0) + 1 }));
|
||||||
splitStore.setActiveTab(row, index, t.id);
|
splitStore.setActiveTab(row, index, t.id);
|
||||||
};
|
};
|
||||||
const singleConsole = tabs.length === 1 && tabs[0].content?.kind === "builtin" && tabs[0].content.type === "console";
|
const singleTab = tabs.length === 1;
|
||||||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
||||||
!singleConsole && !pane.collapsed && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "dsh-wt_tabBar", children: tabs.map((t, i) => {
|
!singleTab && !pane.collapsed && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "dsh-wt_tabBar", children: tabs.map((t, i) => {
|
||||||
const locked = t.content?.kind === "builtin" && t.content.type === "console";
|
const locked = t.content?.kind === "builtin" && t.content.type === "console";
|
||||||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
||||||
"span",
|
"span",
|
||||||
@@ -19953,6 +19957,8 @@ function WorkspaceLayer(props) {
|
|||||||
const topY = barTop + BAR_H;
|
const topY = barTop + BAR_H;
|
||||||
const renderPane = (it, row, index, x, y, h) => {
|
const renderPane = (it, row, index, x, y, h) => {
|
||||||
const singleConsole = (it.pane.tabs ?? []).length === 1 && it.pane.tabs[0].content?.kind === "builtin" && it.pane.tabs[0].content.type === "console";
|
const singleConsole = (it.pane.tabs ?? []).length === 1 && it.pane.tabs[0].content?.kind === "builtin" && it.pane.tabs[0].content.type === "console";
|
||||||
|
const onlyTab = (it.pane.tabs ?? []).length === 1 ? it.pane.tabs[0] : null;
|
||||||
|
const onlyTabClosable = onlyTab !== null && !(onlyTab.content?.kind === "builtin" && onlyTab.content.type === "console");
|
||||||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
||||||
"div",
|
"div",
|
||||||
{
|
{
|
||||||
@@ -19977,7 +19983,7 @@ function WorkspaceLayer(props) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
!it.pane.collapsed && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
!it.pane.collapsed && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
||||||
"div",
|
"div",
|
||||||
{
|
{
|
||||||
className: "dsh-wt_paneBar",
|
className: "dsh-wt_paneBar",
|
||||||
@@ -20000,7 +20006,23 @@ function WorkspaceLayer(props) {
|
|||||||
onDragEnd: () => {
|
onDragEnd: () => {
|
||||||
dragPane = null;
|
dragPane = null;
|
||||||
},
|
},
|
||||||
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dsh-wt_paneTitle", children: it.pane.title })
|
children: [
|
||||||
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dsh-wt_paneTitle", children: onlyTab?.title ?? it.pane.title }),
|
||||||
|
onlyTabClosable && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
||||||
|
"button",
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
className: "dsh-wt_paneTabClose",
|
||||||
|
title: T("pane.closeTab"),
|
||||||
|
"aria-label": T("pane.closeTab"),
|
||||||
|
onClick: (e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
splitStore.closeTab(row, index, onlyTab.id);
|
||||||
|
},
|
||||||
|
children: "\u2715"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
]
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaneBody, { pane: it.pane, row, index }),
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaneBody, { pane: it.pane, row, index }),
|
||||||
|
|||||||
+76
-76
@@ -118,84 +118,84 @@ function createPreviewFiles(now = () => Date.now()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// template/dshell.css
|
// template/dshell.css
|
||||||
var dshell_default = `/* dsh-worktable \u539F\u751F\u76AE\u80A4 \xB7 DSH \u8BBE\u8BA1\u7CFB\u7EDF\u7EC4\u4EF6\u5E93\r
|
var dshell_default = `/* dsh-worktable \u539F\u751F\u76AE\u80A4 \xB7 DSH \u8BBE\u8BA1\u7CFB\u7EDF\u7EC4\u4EF6\u5E93
|
||||||
\u7528\u6CD5\uFF1A<link rel="stylesheet" href="/api/worktable/template/dshell.css">\r
|
\u7528\u6CD5\uFF1A<link rel="stylesheet" href="/api/worktable/template/dshell.css">
|
||||||
\u6240\u6709\u989C\u8272\u8D70 DSH \u4E3B\u9898\u53D8\u91CF\uFF08--dsw-alias-*\uFF09\uFF0C\u81EA\u52A8\u9002\u914D\u660E\u6697\u4E3B\u9898\u3002 */\r
|
\u6240\u6709\u989C\u8272\u8D70 DSH \u4E3B\u9898\u53D8\u91CF\uFF08--dsw-alias-*\uFF09\uFF0C\u81EA\u52A8\u9002\u914D\u660E\u6697\u4E3B\u9898\u3002 */
|
||||||
:root { color-scheme: dark; }\r
|
:root { color-scheme: dark; }
|
||||||
* { box-sizing: border-box; }\r
|
* { box-sizing: border-box; }
|
||||||
html, body { margin: 0; padding: 0; }\r
|
html, body { margin: 0; padding: 0; }
|
||||||
body {\r
|
body {
|
||||||
background: var(--dsw-alias-bg-base, #0b0e14);\r
|
background: var(--dsw-alias-bg-base, #0b0e14);
|
||||||
color: var(--dsw-alias-label-primary, #e6e8eb);\r
|
color: var(--dsw-alias-label-primary, #e6e8eb);
|
||||||
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;\r
|
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 13px;\r
|
font-size: 13px;
|
||||||
line-height: 1.6;\r
|
line-height: 1.6;
|
||||||
}\r
|
}
|
||||||
.dshell { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; min-height: 100%; }\r
|
.dshell { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; min-height: 100%; }
|
||||||
/* \u6587\u5B57\u5C42\u7EA7 */\r
|
/* \u6587\u5B57\u5C42\u7EA7 */
|
||||||
.dshell-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--dsw-alias-label-primary, #e6e8eb); }\r
|
.dshell-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--dsw-alias-label-primary, #e6e8eb); }
|
||||||
.dshell-sub { margin: 0; font-size: 12px; color: var(--dsw-alias-label-secondary, #9aa4b2); }\r
|
.dshell-sub { margin: 0; font-size: 12px; color: var(--dsw-alias-label-secondary, #9aa4b2); }
|
||||||
.dshell-muted { color: var(--dsw-alias-label-tertiary, #6b7280); font-size: 11.5px; }\r
|
.dshell-muted { color: var(--dsw-alias-label-tertiary, #6b7280); font-size: 11.5px; }
|
||||||
/* \u5361\u7247 */\r
|
/* \u5361\u7247 */
|
||||||
.dshell-card { border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 10px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.02)); padding: 12px 14px; }\r
|
.dshell-card { border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 10px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.02)); padding: 12px 14px; }
|
||||||
.dshell-card + .dshell-card { margin-top: 10px; }\r
|
.dshell-card + .dshell-card { margin-top: 10px; }
|
||||||
/* \u6309\u94AE\uFF08\u7EFF\u8272\u4E3B\u6309\u94AE / \u5E7D\u7075\u6309\u94AE / \u5371\u9669\uFF09 */\r
|
/* \u6309\u94AE\uFF08\u7EFF\u8272\u4E3B\u6309\u94AE / \u5E7D\u7075\u6309\u94AE / \u5371\u9669\uFF09 */
|
||||||
.dshell-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; background: #3fb950; color: #0b0e14; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }\r
|
.dshell-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; background: #3fb950; color: #0b0e14; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
|
||||||
.dshell-btn:hover { filter: brightness(1.08); }\r
|
.dshell-btn:hover { filter: brightness(1.08); }
|
||||||
.dshell-btnGhost { background: transparent; border-color: var(--dsw-alias-border-l1, #262b36); color: var(--dsw-alias-label-secondary, #9aa4b2); }\r
|
.dshell-btnGhost { background: transparent; border-color: var(--dsw-alias-border-l1, #262b36); color: var(--dsw-alias-label-secondary, #9aa4b2); }
|
||||||
.dshell-btnGhost:hover { color: var(--dsw-alias-label-primary, #e6e8eb); border-color: var(--dsw-alias-border-l2, #3a4150); }\r
|
.dshell-btnGhost:hover { color: var(--dsw-alias-label-primary, #e6e8eb); border-color: var(--dsw-alias-border-l2, #3a4150); }
|
||||||
.dshell-btnDanger { background: transparent; border-color: #f85149; color: #f85149; }\r
|
.dshell-btnDanger { background: transparent; border-color: #f85149; color: #f85149; }
|
||||||
/* \u72B6\u6001\u5FBD\u6807\uFF08\u5706\u70B9 + \u6587\u5B57\uFF1B\u7EFF=\u5DF2\u5B8C\u6210 \u9EC4=\u5F85\u529E/\u5F85\u53D1\u5E03 \u7070=\u672A\u5F00\u59CB\uFF09 */\r
|
/* \u72B6\u6001\u5FBD\u6807\uFF08\u5706\u70B9 + \u6587\u5B57\uFF1B\u7EFF=\u5DF2\u5B8C\u6210 \u9EC4=\u5F85\u529E/\u5F85\u53D1\u5E03 \u7070=\u672A\u5F00\u59CB\uFF09 */
|
||||||
.dshell-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l1, #262b36); font-size: 11.5px; color: var(--dsw-alias-label-secondary, #9aa4b2); background: var(--dsw-alias-fill-l1, rgba(255,255,255,.03)); }\r
|
.dshell-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l1, #262b36); font-size: 11.5px; color: var(--dsw-alias-label-secondary, #9aa4b2); background: var(--dsw-alias-fill-l1, rgba(255,255,255,.03)); }
|
||||||
.dshell-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dsw-alias-label-tertiary, #6b7280); }\r
|
.dshell-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dsw-alias-label-tertiary, #6b7280); }
|
||||||
.dshell-badgeDone { color: #3fb950; border-color: rgba(63,185,80,.4); }\r
|
.dshell-badgeDone { color: #3fb950; border-color: rgba(63,185,80,.4); }
|
||||||
.dshell-badgeDone::before { background: #3fb950; box-shadow: 0 0 5px #3fb950; }\r
|
.dshell-badgeDone::before { background: #3fb950; box-shadow: 0 0 5px #3fb950; }
|
||||||
.dshell-badgeWait { color: #d29922; border-color: rgba(210,153,34,.4); }\r
|
.dshell-badgeWait { color: #d29922; border-color: rgba(210,153,34,.4); }
|
||||||
.dshell-badgeWait::before { background: #d29922; box-shadow: 0 0 5px #d29922; }\r
|
.dshell-badgeWait::before { background: #d29922; box-shadow: 0 0 5px #d29922; }
|
||||||
.dshell-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dsw-alias-label-tertiary, #6b7280); }\r
|
.dshell-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dsw-alias-label-tertiary, #6b7280); }
|
||||||
.dshell-dotDone { background: #3fb950; box-shadow: 0 0 5px #3fb950; }\r
|
.dshell-dotDone { background: #3fb950; box-shadow: 0 0 5px #3fb950; }
|
||||||
.dshell-dotWait { background: #d29922; box-shadow: 0 0 5px #d29922; }\r
|
.dshell-dotWait { background: #d29922; box-shadow: 0 0 5px #d29922; }
|
||||||
/* \u6807\u7B7E\u9875 */\r
|
/* \u6807\u7B7E\u9875 */
|
||||||
.dshell-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dsw-alias-border-l1, #262b36); }\r
|
.dshell-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dsw-alias-border-l1, #262b36); }
|
||||||
.dshell-tab { padding: 7px 12px; font-size: 12.5px; color: var(--dsw-alias-label-secondary, #9aa4b2); cursor: pointer; border: none; background: none; font: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; }\r
|
.dshell-tab { padding: 7px 12px; font-size: 12.5px; color: var(--dsw-alias-label-secondary, #9aa4b2); cursor: pointer; border: none; background: none; font: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; }
|
||||||
.dshell-tabOn { color: var(--dsw-alias-label-primary, #e6e8eb); border-bottom-color: var(--dsw-alias-state-accent-primary, #4f8ef7); }\r
|
.dshell-tabOn { color: var(--dsw-alias-label-primary, #e6e8eb); border-bottom-color: var(--dsw-alias-state-accent-primary, #4f8ef7); }
|
||||||
/* \u5217\u8868 */\r
|
/* \u5217\u8868 */
|
||||||
.dshell-list { display: flex; flex-direction: column; gap: 6px; }\r
|
.dshell-list { display: flex; flex-direction: column; gap: 6px; }
|
||||||
.dshell-listItem { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 8px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.02)); cursor: pointer; }\r
|
.dshell-listItem { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 8px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.02)); cursor: pointer; }
|
||||||
.dshell-listItem:hover { border-color: var(--dsw-alias-border-l2, #3a4150); background: var(--dsw-alias-fill-l1, rgba(255,255,255,.05)); }\r
|
.dshell-listItem:hover { border-color: var(--dsw-alias-border-l2, #3a4150); background: var(--dsw-alias-fill-l1, rgba(255,255,255,.05)); }
|
||||||
.dshell-listItemTitle { font-size: 12.5px; color: var(--dsw-alias-label-primary, #e6e8eb); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\r
|
.dshell-listItemTitle { font-size: 12.5px; color: var(--dsw-alias-label-primary, #e6e8eb); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.dshell-listItemMeta { flex: none; font-size: 11px; color: var(--dsw-alias-label-tertiary, #6b7280); }\r
|
.dshell-listItemMeta { flex: none; font-size: 11px; color: var(--dsw-alias-label-tertiary, #6b7280); }
|
||||||
/* \u7F51\u683C / \u7EDF\u8BA1 */\r
|
/* \u7F51\u683C / \u7EDF\u8BA1 */
|
||||||
.dshell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }\r
|
.dshell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
|
||||||
.dshell-stat { padding: 10px 12px; border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 10px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.02)); }\r
|
.dshell-stat { padding: 10px 12px; border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 10px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.02)); }
|
||||||
.dshell-statLabel { font-size: 11px; color: var(--dsw-alias-label-secondary, #9aa4b2); }\r
|
.dshell-statLabel { font-size: 11px; color: var(--dsw-alias-label-secondary, #9aa4b2); }
|
||||||
.dshell-statValue { font-size: 20px; font-weight: 600; color: var(--dsw-alias-label-primary, #e6e8eb); }\r
|
.dshell-statValue { font-size: 20px; font-weight: 600; color: var(--dsw-alias-label-primary, #e6e8eb); }
|
||||||
.dshell-statDelta { font-size: 11px; color: #3fb950; }\r
|
.dshell-statDelta { font-size: 11px; color: #3fb950; }
|
||||||
/* \u8FDB\u5EA6\u6761 */\r
|
/* \u8FDB\u5EA6\u6761 */
|
||||||
.dshell-progress { height: 6px; border-radius: 3px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.06)); overflow: hidden; }\r
|
.dshell-progress { height: 6px; border-radius: 3px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.06)); overflow: hidden; }
|
||||||
.dshell-progressBar { height: 100%; border-radius: 3px; background: #3fb950; }\r
|
.dshell-progressBar { height: 100%; border-radius: 3px; background: #3fb950; }
|
||||||
/* \u8F93\u5165 */\r
|
/* \u8F93\u5165 */
|
||||||
.dshell-input, .dshell-textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 8px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.03)); color: var(--dsw-alias-label-primary, #e6e8eb); font: inherit; font-size: 12.5px; outline: none; }\r
|
.dshell-input, .dshell-textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--dsw-alias-border-l1, #262b36); border-radius: 8px; background: var(--dsw-alias-fill-l1, rgba(255,255,255,.03)); color: var(--dsw-alias-label-primary, #e6e8eb); font: inherit; font-size: 12.5px; outline: none; }
|
||||||
.dshell-input:focus, .dshell-textarea:focus { border-color: var(--dsw-alias-state-accent-primary, #4f8ef7); }\r
|
.dshell-input:focus, .dshell-textarea:focus { border-color: var(--dsw-alias-state-accent-primary, #4f8ef7); }
|
||||||
/* \u8868\u683C */\r
|
/* \u8868\u683C */
|
||||||
.dshell-table { width: 100%; border-collapse: collapse; font-size: 12px; }\r
|
.dshell-table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
||||||
.dshell-table th, .dshell-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--dsw-alias-border-l1, #262b36); }\r
|
.dshell-table th, .dshell-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--dsw-alias-border-l1, #262b36); }
|
||||||
.dshell-table th { color: var(--dsw-alias-label-secondary, #9aa4b2); font-weight: 500; }\r
|
.dshell-table th { color: var(--dsw-alias-label-secondary, #9aa4b2); font-weight: 500; }
|
||||||
/* \u952E\u503C\u5BF9 */\r
|
/* \u952E\u503C\u5BF9 */
|
||||||
.dshell-kv { display: flex; flex-direction: column; gap: 6px; }\r
|
.dshell-kv { display: flex; flex-direction: column; gap: 6px; }
|
||||||
.dshell-kvRow { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }\r
|
.dshell-kvRow { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
|
||||||
.dshell-kvKey { color: var(--dsw-alias-label-secondary, #9aa4b2); }\r
|
.dshell-kvKey { color: var(--dsw-alias-label-secondary, #9aa4b2); }
|
||||||
.dshell-kvValue { color: var(--dsw-alias-label-primary, #e6e8eb); text-align: right; }\r
|
.dshell-kvValue { color: var(--dsw-alias-label-primary, #e6e8eb); text-align: right; }
|
||||||
/* \u5206\u5272\u7EBF */\r
|
/* \u5206\u5272\u7EBF */
|
||||||
.dshell-divider { height: 1px; background: var(--dsw-alias-border-l1, #262b36); margin: 6px 0; }\r
|
.dshell-divider { height: 1px; background: var(--dsw-alias-border-l1, #262b36); margin: 6px 0; }
|
||||||
/* \u6EDA\u52A8\u6761 */\r
|
/* \u6EDA\u52A8\u6761 */
|
||||||
::-webkit-scrollbar { width: 10px; height: 10px; }\r
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||||
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 5px; }\r
|
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 5px; }
|
||||||
::-webkit-scrollbar-track { background: transparent; }\r
|
::-webkit-scrollbar-track { background: transparent; }
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// template/dshell.html
|
// template/dshell.html
|
||||||
var dshell_default2 = '<!doctype html>\r\n<!-- dsh-worktable \u539F\u751F\u76AE\u80A4\u6A21\u677F\uFF1A\u65B0\u9875\u9762\u4EE5\u6B64\u4E3A\u57FA\u7840\uFF0C\u66FF\u6362\u4E0B\u9762\u793A\u4F8B\u5185\u5BB9\u5373\u53EF\u3002\r\n \u6837\u5F0F\u8868\u7531\u63D2\u4EF6\u63D0\u4F9B\uFF08\u968F\u4E3B\u9898\u81EA\u52A8\u9002\u914D\uFF09\uFF0C\u4E0D\u8981\u590D\u5236\u6216\u6539\u5199\u5B83\u3002 -->\r\n<html lang="zh-CN">\r\n<head>\r\n <meta charset="utf-8" />\r\n <meta name="viewport" content="width=device-width, initial-scale=1" />\r\n <title>\u6211\u7684\u7A97\u53E3</title>\r\n <link rel="stylesheet" href="/api/worktable/template/dshell.css" />\r\n</head>\r\n<body>\r\n <div class="dshell">\r\n <!-- \u6807\u9898\u533A -->\r\n <h1 class="dshell-title">\u7A97\u53E3\u6807\u9898</h1>\r\n <p class="dshell-sub">\u4E00\u53E5\u8BDD\u8BF4\u660E\u8FD9\u4E2A\u7A97\u53E3\u505A\u4EC0\u4E48\u3002</p>\r\n\r\n <!-- \u72B6\u6001\u5FBD\u6807\uFF1A\u5DF2\u5B8C\u6210 dshell-badgeDone / \u8FDB\u884C\u4E2D dshell-badgeWait / \u9ED8\u8BA4 -->\r\n <div>\r\n <span class="dshell-badge dshell-badgeDone">\u5DF2\u5B8C\u6210</span>\r\n <span class="dshell-badge dshell-badgeWait">\u8FDB\u884C\u4E2D</span>\r\n <span class="dshell-badge">\u672A\u5F00\u59CB</span>\r\n </div>\r\n\r\n <!-- \u6807\u7B7E\u9875 -->\r\n <div class="dshell-tabs">\r\n <button class="dshell-tab dshell-tabOn">\u6982\u89C8</button>\r\n <button class="dshell-tab">\u8BE6\u60C5</button>\r\n <button class="dshell-tab">\u8BBE\u7F6E</button>\r\n </div>\r\n\r\n <!-- \u7EDF\u8BA1\u5361\u7247\u7F51\u683C -->\r\n <div class="dshell-grid">\r\n <div class="dshell-stat">\r\n <div class="dshell-statLabel">\u603B\u6570</div>\r\n <div class="dshell-statValue">128</div>\r\n <div class="dshell-statDelta">+12.4%</div>\r\n </div>\r\n <div class="dshell-stat">\r\n <div class="dshell-statLabel">\u8FDB\u884C\u4E2D</div>\r\n <div class="dshell-statValue">7</div>\r\n </div>\r\n <div class="dshell-stat">\r\n <div class="dshell-statLabel">\u5DF2\u5B8C\u6210</div>\r\n <div class="dshell-statValue">121</div>\r\n </div>\r\n </div>\r\n\r\n <!-- \u5217\u8868 -->\r\n <div class="dshell-list">\r\n <div class="dshell-listItem">\r\n <span class="dshell-listItemTitle">\u6761\u76EE\u4E00\uFF1A\u793A\u4F8B\u5185\u5BB9\u6807\u9898</span>\r\n <span class="dshell-listItemMeta">\u6628\u5929</span>\r\n </div>\r\n <div class="dshell-listItem">\r\n <span class="dshell-listItemTitle">\u6761\u76EE\u4E8C\uFF1A\u793A\u4F8B\u5185\u5BB9\u6807\u9898</span>\r\n <span class="dshell-badge dshell-badgeDone">\u5DF2\u53D1\u5E03</span>\r\n </div>\r\n </div>\r\n\r\n <!-- \u5361\u7247 + \u952E\u503C\u5BF9 -->\r\n <div class="dshell-card">\r\n <h2 class="dshell-sub" style="margin:0 0 8px">\u8BE6\u60C5</h2>\r\n <div class="dshell-kv">\r\n <div class="dshell-kvRow"><span class="dshell-kvKey">\u5B57\u6BB5 A</span><span class="dshell-kvValue">\u503C A</span></div>\r\n <div class="dshell-kvRow"><span class="dshell-kvKey">\u5B57\u6BB5 B</span><span class="dshell-kvValue">\u503C B</span></div>\r\n </div>\r\n <div class="dshell-divider"></div>\r\n <div class="dshell-progress"><div class="dshell-progressBar" style="width:72%"></div></div>\r\n </div>\r\n\r\n <!-- \u64CD\u4F5C\u533A -->\r\n <div style="display:flex;gap:8px">\r\n <button class="dshell-btn">\u4E3B\u8981\u64CD\u4F5C</button>\r\n <button class="dshell-btn dshell-btnGhost">\u6B21\u8981\u64CD\u4F5C</button>\r\n </div>\r\n </div>\r\n</body>\r\n</html>\r\n';
|
var dshell_default2 = '<!doctype html>\n<!-- dsh-worktable \u539F\u751F\u76AE\u80A4\u6A21\u677F\uFF1A\u65B0\u9875\u9762\u4EE5\u6B64\u4E3A\u57FA\u7840\uFF0C\u66FF\u6362\u4E0B\u9762\u793A\u4F8B\u5185\u5BB9\u5373\u53EF\u3002\n \u6837\u5F0F\u8868\u7531\u63D2\u4EF6\u63D0\u4F9B\uFF08\u968F\u4E3B\u9898\u81EA\u52A8\u9002\u914D\uFF09\uFF0C\u4E0D\u8981\u590D\u5236\u6216\u6539\u5199\u5B83\u3002 -->\n<html lang="zh-CN">\n<head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <title>\u6211\u7684\u7A97\u53E3</title>\n <link rel="stylesheet" href="/api/worktable/template/dshell.css" />\n</head>\n<body>\n <div class="dshell">\n <!-- \u6807\u9898\u533A -->\n <h1 class="dshell-title">\u7A97\u53E3\u6807\u9898</h1>\n <p class="dshell-sub">\u4E00\u53E5\u8BDD\u8BF4\u660E\u8FD9\u4E2A\u7A97\u53E3\u505A\u4EC0\u4E48\u3002</p>\n\n <!-- \u72B6\u6001\u5FBD\u6807\uFF1A\u5DF2\u5B8C\u6210 dshell-badgeDone / \u8FDB\u884C\u4E2D dshell-badgeWait / \u9ED8\u8BA4 -->\n <div>\n <span class="dshell-badge dshell-badgeDone">\u5DF2\u5B8C\u6210</span>\n <span class="dshell-badge dshell-badgeWait">\u8FDB\u884C\u4E2D</span>\n <span class="dshell-badge">\u672A\u5F00\u59CB</span>\n </div>\n\n <!-- \u6807\u7B7E\u9875 -->\n <div class="dshell-tabs">\n <button class="dshell-tab dshell-tabOn">\u6982\u89C8</button>\n <button class="dshell-tab">\u8BE6\u60C5</button>\n <button class="dshell-tab">\u8BBE\u7F6E</button>\n </div>\n\n <!-- \u7EDF\u8BA1\u5361\u7247\u7F51\u683C -->\n <div class="dshell-grid">\n <div class="dshell-stat">\n <div class="dshell-statLabel">\u603B\u6570</div>\n <div class="dshell-statValue">128</div>\n <div class="dshell-statDelta">+12.4%</div>\n </div>\n <div class="dshell-stat">\n <div class="dshell-statLabel">\u8FDB\u884C\u4E2D</div>\n <div class="dshell-statValue">7</div>\n </div>\n <div class="dshell-stat">\n <div class="dshell-statLabel">\u5DF2\u5B8C\u6210</div>\n <div class="dshell-statValue">121</div>\n </div>\n </div>\n\n <!-- \u5217\u8868 -->\n <div class="dshell-list">\n <div class="dshell-listItem">\n <span class="dshell-listItemTitle">\u6761\u76EE\u4E00\uFF1A\u793A\u4F8B\u5185\u5BB9\u6807\u9898</span>\n <span class="dshell-listItemMeta">\u6628\u5929</span>\n </div>\n <div class="dshell-listItem">\n <span class="dshell-listItemTitle">\u6761\u76EE\u4E8C\uFF1A\u793A\u4F8B\u5185\u5BB9\u6807\u9898</span>\n <span class="dshell-badge dshell-badgeDone">\u5DF2\u53D1\u5E03</span>\n </div>\n </div>\n\n <!-- \u5361\u7247 + \u952E\u503C\u5BF9 -->\n <div class="dshell-card">\n <h2 class="dshell-sub" style="margin:0 0 8px">\u8BE6\u60C5</h2>\n <div class="dshell-kv">\n <div class="dshell-kvRow"><span class="dshell-kvKey">\u5B57\u6BB5 A</span><span class="dshell-kvValue">\u503C A</span></div>\n <div class="dshell-kvRow"><span class="dshell-kvKey">\u5B57\u6BB5 B</span><span class="dshell-kvValue">\u503C B</span></div>\n </div>\n <div class="dshell-divider"></div>\n <div class="dshell-progress"><div class="dshell-progressBar" style="width:72%"></div></div>\n </div>\n\n <!-- \u64CD\u4F5C\u533A -->\n <div style="display:flex;gap:8px">\n <button class="dshell-btn">\u4E3B\u8981\u64CD\u4F5C</button>\n <button class="dshell-btn dshell-btnGhost">\u6B21\u8981\u64CD\u4F5C</button>\n </div>\n </div>\n</body>\n</html>\n';
|
||||||
|
|
||||||
// src/index.ts
|
// src/index.ts
|
||||||
function baseDshHome() {
|
function baseDshHome() {
|
||||||
@@ -225,7 +225,7 @@ function resolveDshHomeSafe() {
|
|||||||
cachedDshHome = baseDshHome();
|
cachedDshHome = baseDshHome();
|
||||||
return cachedDshHome;
|
return cachedDshHome;
|
||||||
}
|
}
|
||||||
var PLUGIN_VERSION = false ? "dev" : "0.5.2-local.6";
|
var PLUGIN_VERSION = false ? "dev" : "0.5.3-local.1";
|
||||||
var name = "dsh-worktable";
|
var name = "dsh-worktable";
|
||||||
var inject = ["webServer", "sessions"];
|
var inject = ["webServer", "sessions"];
|
||||||
var HEALTH_PATH = "/api/worktable/health";
|
var HEALTH_PATH = "/api/worktable/health";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dsh-worktable",
|
"name": "dsh-worktable",
|
||||||
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
|
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
|
||||||
"version": "0.5.2-local.6",
|
"version": "0.5.3-local.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Aisland-SJL/dsh-worktable.git",
|
"url": "https://github.com/Aisland-SJL/dsh-worktable.git",
|
||||||
|
|||||||
@@ -2864,11 +2864,12 @@ function PaneBody(props: { pane: SplitPane; row: PaneRow; index: number }) {
|
|||||||
setReloadKeys((m) => ({ ...m, [t.id]: (m[t.id] ?? 0) + 1 }))
|
setReloadKeys((m) => ({ ...m, [t.id]: (m[t.id] ?? 0) + 1 }))
|
||||||
splitStore.setActiveTab(row, index, t.id)
|
splitStore.setActiveTab(row, index, t.id)
|
||||||
}
|
}
|
||||||
// 唯一标签是控制室 → 整个标签栏不渲染(不可关、不可换,标签栏无信息价值;去掉顶部多余标题)
|
// 唯一标签时整个标签栏不渲染:标签不可换、标题与窗格标题重复,标签栏只是一层
|
||||||
const singleConsole = tabs.length === 1 && tabs[0].content?.kind === 'builtin' && tabs[0].content.type === 'console'
|
// 多余的纵向装饰(REQ-20261117-0013)。原实现只对控制室生效,这里推广到所有窗格。
|
||||||
|
const singleTab = tabs.length === 1
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{!singleConsole && !pane.collapsed && (
|
{!singleTab && !pane.collapsed && (
|
||||||
<div className="dsh-wt_tabBar">
|
<div className="dsh-wt_tabBar">
|
||||||
{tabs.map((t, i) => {
|
{tabs.map((t, i) => {
|
||||||
// 控制室标签不可关闭:关掉后窗格变选择器,用户回不到控制室(不可逆操作)
|
// 控制室标签不可关闭:关掉后窗格变选择器,用户回不到控制室(不可逆操作)
|
||||||
@@ -2990,6 +2991,10 @@ function WorkspaceLayer(props: { spec: LayoutSpec; geom: Geom | null; chatW: num
|
|||||||
|
|
||||||
const renderPane = (it: { pane: SplitPane; left: number; width: number }, row: PaneRow, index: number, x: number, y: number, h: number) => {
|
const renderPane = (it: { pane: SplitPane; left: number; width: number }, row: PaneRow, index: number, x: number, y: number, h: number) => {
|
||||||
const singleConsole = (it.pane.tabs ?? []).length === 1 && it.pane.tabs![0].content?.kind === 'builtin' && it.pane.tabs![0].content.type === 'console'
|
const singleConsole = (it.pane.tabs ?? []).length === 1 && it.pane.tabs![0].content?.kind === 'builtin' && it.pane.tabs![0].content.type === 'console'
|
||||||
|
// REQ-20261117-0013:唯一标签时标签栏整体不渲染,标签上的 ✕ 也随之消失。
|
||||||
|
// 为不丢掉「关掉这个标签」这个动作,把关闭按钮挪进窗格标题条(paneBar)。
|
||||||
|
const onlyTab = (it.pane.tabs ?? []).length === 1 ? it.pane.tabs![0] : null
|
||||||
|
const onlyTabClosable = onlyTab !== null && !(onlyTab.content?.kind === 'builtin' && onlyTab.content.type === 'console')
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={it.pane.id}
|
key={it.pane.id}
|
||||||
@@ -3029,7 +3034,19 @@ function WorkspaceLayer(props: { spec: LayoutSpec; geom: Geom | null; chatW: num
|
|||||||
}}
|
}}
|
||||||
onDragEnd={() => { dragPane = null }}
|
onDragEnd={() => { dragPane = null }}
|
||||||
>
|
>
|
||||||
<span className="dsh-wt_paneTitle">{it.pane.title}</span>
|
{/* REQ-20261117-0013:标签栏在唯一标签时已隐藏,标题条改成显示「当前标签名」,
|
||||||
|
比「窗口N」这个纯位置编号有信息量。pane.title 本身不改动 ——
|
||||||
|
windowLabelOf 与 CustomPane 仍靠它给自定义窗口会话命名(标注/派活依赖)。 */}
|
||||||
|
<span className="dsh-wt_paneTitle">{onlyTab?.title ?? it.pane.title}</span>
|
||||||
|
{onlyTabClosable && (
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="dsh-wt_paneTabClose"
|
||||||
|
title={T('pane.closeTab')}
|
||||||
|
aria-label={T('pane.closeTab')}
|
||||||
|
onClick={(e) => { e.stopPropagation(); splitStore.closeTab(row, index, onlyTab!.id) }}
|
||||||
|
>✕</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<PaneBody pane={it.pane} row={row} index={index} />
|
<PaneBody pane={it.pane} row={row} index={index} />
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ export const css = xtermCss + '\n' + [
|
|||||||
'.dsh-wt_paneBar{flex:none;display:flex;align-items:center;height:22px;padding:0 8px;border-bottom:1px solid var(--dsw-alias-border-l1,#262b36);background:var(--dsw-alias-fill-l1,rgba(255,255,255,.02))}',
|
'.dsh-wt_paneBar{flex:none;display:flex;align-items:center;height:22px;padding:0 8px;border-bottom:1px solid var(--dsw-alias-border-l1,#262b36);background:var(--dsw-alias-fill-l1,rgba(255,255,255,.02))}',
|
||||||
'.dsh-wt_paneBar{padding-right:26px}',
|
'.dsh-wt_paneBar{padding-right:26px}',
|
||||||
'.dsh-wt_paneTitle{flex:1;min-width:0;font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary,#9aa4b2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}',
|
'.dsh-wt_paneTitle{flex:1;min-width:0;font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary,#9aa4b2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}',
|
||||||
|
// REQ-20261117-0013:唯一标签时标签栏不渲染,关闭按钮改由窗格标题条承载。
|
||||||
|
// 放在折叠/标注按钮左侧,避开它们占用的右上角(right 14px / 36px)。
|
||||||
|
'.dsh-wt_paneTabClose{position:absolute;top:2px;right:58px;z-index:2;width:18px;height:18px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#6e7683);font-size:10px;line-height:1;cursor:pointer}',
|
||||||
|
'.dsh-wt_paneTabClose:hover{color:var(--dsw-alias-label-primary,#e6e8eb);background:var(--dsw-alias-fill-l2,rgba(255,255,255,.09));border-color:var(--dsw-alias-border-l1,#262b36)}',
|
||||||
// 窗格折叠按钮:常态只是一个折角小标签(无底色无描边),hover 才显示按钮范围(底+描边)
|
// 窗格折叠按钮:常态只是一个折角小标签(无底色无描边),hover 才显示按钮范围(底+描边)
|
||||||
'.dsh-wt_collapseBtn{position:absolute;top:2px;right:14px;z-index:2;width:18px;height:18px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#6e7683);cursor:pointer}',
|
'.dsh-wt_collapseBtn{position:absolute;top:2px;right:14px;z-index:2;width:18px;height:18px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#6e7683);cursor:pointer}',
|
||||||
'.dsh-wt_collapseBtn:hover{color:var(--dsw-alias-label-primary,#e6e8eb);background:var(--dsw-alias-fill-l2,rgba(255,255,255,.09));border-color:var(--dsw-alias-border-l1,#262b36)}',
|
'.dsh-wt_collapseBtn:hover{color:var(--dsw-alias-label-primary,#e6e8eb);background:var(--dsw-alias-fill-l2,rgba(255,255,255,.09));border-color:var(--dsw-alias-border-l1,#262b36)}',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# 本地补丁:工作台状态镜像到宿主侧
|
# 本地补丁:工作台状态镜像到宿主侧
|
||||||
|
|
||||||
基于上游 `Aisland-SJL/dsh-worktable` **v0.5.1**,本地版本号 `0.5.2-local.6`。
|
基于上游 `Aisland-SJL/dsh-worktable` **v0.5.1**,本地版本号 `0.5.3-local.1`。
|
||||||
|
|
||||||
## 为什么打这个补丁
|
## 为什么打这个补丁
|
||||||
|
|
||||||
@@ -85,3 +85,4 @@ dsh plugin --profile web add "https://gitea.ququclean.com/xiaoqu/dsh-worktable/r
|
|||||||
| 0.5.2-local.1 | 状态镜像首版;只声明兼容到 0.2.1-rc.5 |
|
| 0.5.2-local.1 | 状态镜像首版;只声明兼容到 0.2.1-rc.5 |
|
||||||
| 0.5.2-local.2 | 兼容声明加入 DSH 0.2.2-alpha.2(宿主升级后安装被拒) |
|
| 0.5.2-local.2 | 兼容声明加入 DSH 0.2.2-alpha.2(宿主升级后安装被拒) |
|
||||||
| 0.5.2-local.6 | 修数据安全:写入按 key 合并 + 读不到不写,修复空状态覆盖镜像 |
|
| 0.5.2-local.6 | 修数据安全:写入按 key 合并 + 读不到不写,修复空状态覆盖镜像 |
|
||||||
|
| 0.5.3-local.1 | REQ-20261117-0013:单标签窗格隐藏标签栏(原只对控制室生效),关闭入口移到窗格标题条,标题改显示当前标签名 |
|
||||||
|
|||||||
Reference in New Issue
Block a user