From 1390cd2d7e6da13c215ea3ed21b917ac09797b97 Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Sun, 12 Apr 2026 23:20:28 +0800 Subject: [PATCH] fix(ui): move task memory save/delete buttons to title header row --- style.css | 18 +++++++++++++++++- ui/panel.js | 22 +++++++++++----------- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/style.css b/style.css index a389d8b..758e3a9 100644 --- a/style.css +++ b/style.css @@ -1354,11 +1354,27 @@ font-size: 12px; } +.bme-memory-detail__header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 8px; + margin-bottom: 8px; +} + +.bme-memory-detail__header-actions { + display: flex; + align-items: center; + gap: 2px; + flex-shrink: 0; +} + .bme-memory-detail__title { font-size: 18px; font-weight: 700; color: var(--bme-on-surface); - margin-bottom: 8px; + min-width: 0; + word-break: break-word; } .bme-memory-detail__badges { diff --git a/ui/panel.js b/ui/panel.js index 79afe96..a1a092d 100644 --- a/ui/panel.js +++ b/ui/panel.js @@ -1707,23 +1707,23 @@ function _renderTaskMemoryDetailPanel(detailEl, node, graph) { ].filter(Boolean).join(""); detailEl.innerHTML = ` -
${_escHtml(displayName)}
+
+
${_escHtml(displayName)}
+
+ + +
+
${badges}
${_escHtml(detailSummary || "无补充字段")}
${edges.length} 条连接 访问 ${_formatMemoryInt(node.accessCount, 0)}
-
- - -
`;