修复:欢迎按钮消息中发送者名字点击无响应(缺少 clickableUser 渲染)
This commit is contained in:
@@ -202,8 +202,9 @@ export function appendMessage(msg, renderBatch = null) {
|
||||
} else if (msg.action === "欢迎") {
|
||||
div.style.cssText =
|
||||
"background: linear-gradient(135deg, #eff6ff, #f0f9ff); border: 1.5px solid #3b82f6; border-radius: 5px; padding: 5px 10px; margin: 3px 0; box-shadow: 0 1px 3px rgba(59,130,246,0.12);";
|
||||
const fromHtml = clickableUser(msg.from_user, "#1d4ed8", nameClass);
|
||||
const parsedContent = parseBracketUsers(msg.content, "#1d4ed8");
|
||||
html = `<div style="color: #1e40af;">💬 ${parsedContent} <span style="color: #93c5fd; font-size: 11px; font-weight: normal;">(${timeStr})</span></div>`;
|
||||
html = `<div style="color: #1e40af;">💬 ${fromHtml}:${parsedContent} <span style="color: #93c5fd; font-size: 11px; font-weight: normal;">(${timeStr})</span></div>`;
|
||||
timeStrOverride = true;
|
||||
} else if (SYSTEM_USERS.includes(msg.from_user)) {
|
||||
if (msg.from_user === "系统公告") {
|
||||
|
||||
Reference in New Issue
Block a user