wezard 2.2.1 → 2.2.2
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/README.md +1 -1
- package/package.json +1 -1
- package/web/chat.css +1 -1
- package/web/chat.js +2 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/web/chat.css
CHANGED
|
@@ -114,7 +114,7 @@ button { font: inherit; color: inherit }
|
|
|
114
114
|
}
|
|
115
115
|
.sp-btn:hover, .sp.open .sp-btn { background: var(--paper); color: var(--ink) }
|
|
116
116
|
/* 箭头用边框画, 不用 ▾ 字形 —— 字形贴着基线, 放大后总是偏下。 */
|
|
117
|
-
.sp-btn .car { flex: none; display: grid; place-items: center; width:
|
|
117
|
+
.sp-btn .car { flex: none; display: grid; place-items: center; width: 16px; height: 16px; transition: transform .15s }
|
|
118
118
|
.sp-btn .car::before { content: ""; border: 5px solid transparent; border-top: 6px solid var(--faint); border-bottom: 0 }
|
|
119
119
|
.sp.open .sp-btn .car { transform: rotate(180deg) }
|
|
120
120
|
.sp-list {
|
package/web/chat.js
CHANGED
|
@@ -611,10 +611,11 @@
|
|
|
611
611
|
r.chat ? ['🏠', r.chat, 'home'] : null,
|
|
612
612
|
born ? ['🐣', fmtClock(born), '出生于 ' + fmtDay(born)] : null
|
|
613
613
|
].filter(Boolean).map(function (f) { return '<span title="' + esc(f[2]) + '">' + f[0] + ' ' + esc(f[1]) + '</span>'; });
|
|
614
|
+
// 只有一段 session 也挂选择器 —— 它同时是「现在看的是哪一段」的标签, 不该随段数忽隐忽现。
|
|
614
615
|
$('#rb-who').innerHTML =
|
|
615
616
|
'<div class="id"><span class="av">' + esc(r.label) + '</span>' +
|
|
616
617
|
'<span class="l"><span class="nl"><span class="cp" title="' + esc('复制 ' + nameOf(r.id)) + '">' + nm(r.id, r.name) + '</span>' + (r.kind === 'wizard' ? '<span id="rb-st"></span>' : '') +
|
|
617
|
-
'<span id="rb-sp">' + (R.sessions.length
|
|
618
|
+
'<span id="rb-sp">' + (R.sessions.length ? sessPicker() : '') + '</span></span>' +
|
|
618
619
|
(facts.length ? '<span class="facts">' + facts.join('') + '</span>' : '') + '</span></div>' +
|
|
619
620
|
(r.description ? '<p class="job">' + esc(r.description) + '</p>' : '');
|
|
620
621
|
paintStatus();
|