迁移房间列表降级事件
This commit is contained in:
@@ -1511,16 +1511,15 @@
|
||||
const currentTag = isCurrent ?
|
||||
`<span style="font-size:9px;color:#336699;opacity:.7;margin-left:3px;">当前</span>` :
|
||||
'';
|
||||
const clickHandler = isCurrent ? '' : `onclick="location.href='/room/${roomId}'"`;
|
||||
const clickAttributes = isCurrent ? '' :
|
||||
`data-room-url="/room/${roomId}" data-room-hover-bg="#ddeeff" data-room-normal-bg="${bg}"`;
|
||||
|
||||
return `<div ${clickHandler}
|
||||
return `<div ${clickAttributes}
|
||||
style="display:flex;align-items:center;justify-content:space-between;
|
||||
padding:5px 8px;margin:2px 3px;border-radius:5px;
|
||||
border:1px solid ${border};background:${bg};
|
||||
cursor:${isCurrent ? 'default' : 'pointer'};
|
||||
transition:background .15s;"
|
||||
onmouseover="if(${!isCurrent}) this.style.background='#ddeeff';"
|
||||
onmouseout="this.style.background='${bg}';">
|
||||
transition:background .15s;">
|
||||
<span style="color:${nameColor};font-size:11px;font-weight:${isCurrent?'bold':'normal'};overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin-right:4px;">
|
||||
${safeRoomName}${currentTag}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user