@takagaki/cortex-decisions-viewer 0.4.40 → 0.4.41
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/dist/render.js +22 -17
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -574,23 +574,28 @@ a:hover { text-decoration: underline; }
|
|
|
574
574
|
.detail-head > div:first-child { flex: 1 1 auto; min-width: 0; }
|
|
575
575
|
.detail-title { font-size: 24px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
|
|
576
576
|
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
|
|
577
|
+
/* GitHubで編集・つながり等の副次アクション。ヘッダーの .gh-btn と同じダーク(GitHubカラー)+リキッドグラスで揃える */
|
|
577
578
|
.edit-btn {
|
|
578
|
-
-webkit-backdrop-filter: blur(
|
|
579
|
+
-webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
|
|
579
580
|
flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
|
|
580
|
-
padding: 8px
|
|
581
|
-
|
|
582
|
-
|
|
581
|
+
padding: 8px 16px; border-radius: 999px;
|
|
582
|
+
border: 1px solid rgba(255,255,255,0.35); background: rgba(28,32,40,0.82); color: #fff;
|
|
583
|
+
font-size: 13px; font-weight: 600; white-space: nowrap;
|
|
584
|
+
box-shadow: 0 2px 10px rgba(20,30,60,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
|
|
583
585
|
}
|
|
584
|
-
.edit-btn:hover {
|
|
586
|
+
.edit-btn:hover { background: rgba(0,0,0,0.88); text-decoration: none; }
|
|
587
|
+
.edit-btn svg { width: 15px; height: 15px; }
|
|
585
588
|
/* ---- AI導線ボタン(AIで編集・+AIで登録。claude.ai/code へのディープリンク・AIアクションはオレンジ系で統一) ---- */
|
|
589
|
+
/* AIアクション(AIで編集・+AIで登録・AIに聞く)はヘッダーの .ask-ai-btn と同じ塗りで統一する */
|
|
586
590
|
.ai-edit-btn {
|
|
587
|
-
-webkit-backdrop-filter: blur(
|
|
591
|
+
-webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
|
|
588
592
|
flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
|
|
589
|
-
padding: 8px
|
|
590
|
-
background: rgba(217,119,87,0.
|
|
591
|
-
|
|
593
|
+
padding: 8px 16px; border-radius: 999px;
|
|
594
|
+
border: 1px solid rgba(255,255,255,0.55); background: rgba(217,119,87,0.82); color: #fff;
|
|
595
|
+
font-size: 13px; font-weight: 600; white-space: nowrap;
|
|
596
|
+
box-shadow: 0 2px 10px rgba(190,90,60,0.3), inset 0 1px 0 rgba(255,255,255,0.45);
|
|
592
597
|
}
|
|
593
|
-
.ai-edit-btn:hover { background: rgba(
|
|
598
|
+
.ai-edit-btn:hover { background: rgba(194,94,63,0.92); text-decoration: none; }
|
|
594
599
|
.ai-add-bar { margin-bottom: 16px; }
|
|
595
600
|
.ai-add-btn {
|
|
596
601
|
display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
|
|
@@ -1257,7 +1262,7 @@ const CLIENT_JS = `
|
|
|
1257
1262
|
head.appendChild(titleWrap);
|
|
1258
1263
|
head.appendChild(el("a", { class: "ai-edit-btn", href: codeUrl(HOME_EDIT_PROMPT), target: "_blank", rel: "noopener", text: "AIで編集" }));
|
|
1259
1264
|
if (h.editUrl) {
|
|
1260
|
-
head.appendChild(el("a", { class: "edit-btn", href: h.editUrl, target: "_blank", rel: "noopener",
|
|
1265
|
+
head.appendChild(el("a", { class: "edit-btn", href: h.editUrl, target: "_blank", rel: "noopener", html: '${GITHUB_ICON}<span>GitHubで編集</span>' }));
|
|
1261
1266
|
}
|
|
1262
1267
|
app.appendChild(head);
|
|
1263
1268
|
var homeBody = el("div", { class: "body" });
|
|
@@ -1831,11 +1836,11 @@ const CLIENT_JS = `
|
|
|
1831
1836
|
var traceBtn2 = el("a", { class: "edit-btn", href: "?tab=graph", text: "🕸 つながり" });
|
|
1832
1837
|
traceBtn2.addEventListener("click", function (ev) { ev.preventDefault(); openExplorerFor(r); });
|
|
1833
1838
|
head.appendChild(traceBtn2);
|
|
1834
|
-
if (r.editUrl) {
|
|
1835
|
-
head.appendChild(el("a", { class: "edit-btn", href: r.editUrl, target: "_blank", rel: "noopener", text: "✏️ GitHubで編集" }));
|
|
1836
|
-
}
|
|
1837
1839
|
var aiEditR = aiEditBtn(r, r._section, r.title);
|
|
1838
1840
|
if (aiEditR) head.appendChild(aiEditR);
|
|
1841
|
+
if (r.editUrl) {
|
|
1842
|
+
head.appendChild(el("a", { class: "edit-btn", href: r.editUrl, target: "_blank", rel: "noopener", html: '${GITHUB_ICON}<span>GitHubで編集</span>' }));
|
|
1843
|
+
}
|
|
1839
1844
|
app.appendChild(head);
|
|
1840
1845
|
|
|
1841
1846
|
app.appendChild(el("div", { class: "detail-meta" }, [
|
|
@@ -2484,11 +2489,11 @@ const CLIENT_JS = `
|
|
|
2484
2489
|
var traceBtn = el("a", { class: "edit-btn", href: "?tab=graph", text: "🕸 つながり" });
|
|
2485
2490
|
traceBtn.addEventListener("click", function (ev) { ev.preventDefault(); openExplorerFor(d); });
|
|
2486
2491
|
head.appendChild(traceBtn);
|
|
2487
|
-
if (d.editUrl) {
|
|
2488
|
-
head.appendChild(el("a", { class: "edit-btn", href: d.editUrl, target: "_blank", rel: "noopener", text: "✏️ GitHubで編集" }));
|
|
2489
|
-
}
|
|
2490
2492
|
var aiEditD = aiEditBtn(d, "Decisions", d.title);
|
|
2491
2493
|
if (aiEditD) head.appendChild(aiEditD);
|
|
2494
|
+
if (d.editUrl) {
|
|
2495
|
+
head.appendChild(el("a", { class: "edit-btn", href: d.editUrl, target: "_blank", rel: "noopener", html: '${GITHUB_ICON}<span>GitHubで編集</span>' }));
|
|
2496
|
+
}
|
|
2492
2497
|
app.appendChild(head);
|
|
2493
2498
|
|
|
2494
2499
|
var meta = el("div", { class: "detail-meta" }, [
|
package/package.json
CHANGED