补充前端交互边界注释

This commit is contained in:
2026-04-25 10:17:51 +08:00
parent e341f2d1a7
commit a847dad00a
4 changed files with 7 additions and 0 deletions
+1
View File
@@ -72,6 +72,7 @@ export function renderRoomStatusRow(room, options = {}) {
? '<span style="font-size:9px;color:#7090b0;margin-left:3px;">当前</span>'
: '<span style="font-size:9px;color:#336699;opacity:.7;margin-left:3px;">当前</span>')
: "";
// 当前房间不生成跳转事件,避免重复进入同一房间触发无意义刷新。
const clickHandler = isCurrent ? "" : buildRoomClickHandler(room.id, options.roomUrlResolver);
const badge = room.online > 0
? `<span style="background:#e8f5e9;color:#2e7d32;border-radius:8px;padding:0 ${variant === "mobile" ? "6px" : "5px"};font-size:10px;font-weight:bold;white-space:nowrap;flex-shrink:0;">${room.online}${variant === "mobile" ? "" : " "}人</span>`