@takagaki/cortex-decisions-viewer 0.12.157 → 0.12.158
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 +19 -9
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -4972,10 +4972,9 @@ button.site-icon[aria-busy="true"] .site-icon-plus { opacity: 0; }
|
|
|
4972
4972
|
.card-facet-yomi { font-size: 11.5px; }
|
|
4973
4973
|
.card-titlerow { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
|
|
4974
4974
|
.card-titlerow .card-title { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; margin: 2px 0 0; }
|
|
4975
|
-
/*
|
|
4976
|
-
.card-
|
|
4977
|
-
.card-
|
|
4978
|
-
.card-titlerow .mface { align-self: center; }
|
|
4975
|
+
/* 関係者のアイコン。一覧のカードは右端(名前と説明文の 2 行の中央)・詳細ページは名前のすぐ右。portal.id がある人はポータルの人のページへのリンク */
|
|
4976
|
+
.card-facerow { display: flex; align-items: center; gap: 12px; }
|
|
4977
|
+
.card-facemain { flex: 1 1 auto; min-width: 0; }
|
|
4979
4978
|
.detail-namerow { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
|
|
4980
4979
|
.detail-namerow .detail-title { margin: 0; min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
|
|
4981
4980
|
.mface { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--border, #e5e7eb); color: var(--muted, #6b7280); font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; box-sizing: border-box; }
|
|
@@ -8124,11 +8123,22 @@ ${story_1.splitByNameLinks.toString()}
|
|
|
8124
8123
|
var eb = fmErrorBadge(rec);
|
|
8125
8124
|
if (eb) meta.appendChild(eb);
|
|
8126
8125
|
var title = cardTitleLink(rec, titleExtra);
|
|
8127
|
-
//
|
|
8126
|
+
// 関係者のアイコンは一覧ではカードの右端(名前と説明文の 2 行の中央)。返す配列の face に持たせ、呼び出し側が組む
|
|
8128
8127
|
var face = isMemberRec(rec) ? mfAvatar(rec) : null;
|
|
8129
|
-
|
|
8130
|
-
meta.
|
|
8131
|
-
|
|
8128
|
+
var out;
|
|
8129
|
+
if (!meta.childNodes.length) out = [el("div", { class: "card-titlerow" }, [title, trace])];
|
|
8130
|
+
else { meta.appendChild(trace); out = [meta, title]; }
|
|
8131
|
+
out.face = face;
|
|
8132
|
+
return out;
|
|
8133
|
+
}
|
|
8134
|
+
|
|
8135
|
+
/** 一覧カードの本体を組む。関係者(head.face がある)は、上の段(.card-meta)の下の「名前+説明文」と右端のアイコンを横に並べる。 */
|
|
8136
|
+
function cardBody(head, rest) {
|
|
8137
|
+
var nodes = head.concat(rest);
|
|
8138
|
+
if (!head.face) return nodes;
|
|
8139
|
+
var top = nodes.filter(function (n) { return n && n.classList && n.classList.contains("card-meta"); });
|
|
8140
|
+
var main = nodes.filter(function (n) { return top.indexOf(n) < 0; });
|
|
8141
|
+
return top.concat([el("div", { class: "card-facerow" }, [el("div", { class: "card-facemain" }, main), head.face])]);
|
|
8132
8142
|
}
|
|
8133
8143
|
|
|
8134
8144
|
/**
|
|
@@ -19463,7 +19473,7 @@ ${story_1.splitByNameLinks.toString()}
|
|
|
19463
19473
|
draftBadge(r),
|
|
19464
19474
|
r.date ? el("span", { class: "mono", text: r.date }) : null,
|
|
19465
19475
|
].concat(cardFacets(r)), r.deleted ? " is-deleted" : "");
|
|
19466
|
-
var card = el("div", { class: "card", title: r.id, "data-record-id": r.id }, head
|
|
19476
|
+
var card = el("div", { class: "card", title: r.id, "data-record-id": r.id }, cardBody(head, [
|
|
19467
19477
|
r.summary ? el("p", { class: "card-summary", text: r.summary }) : null,
|
|
19468
19478
|
]));
|
|
19469
19479
|
card.addEventListener("click", function () { go(r.id); });
|
package/package.json
CHANGED