ui: 微調消息菜單

* 仿照電報邏輯
* 添加 JsonView
This commit is contained in:
CrescentLeaf
2025-10-01 11:51:28 +08:00
parent 459fca064c
commit f376de2b48
3 changed files with 24 additions and 11 deletions

View File

@@ -29,7 +29,8 @@ customElements.define('chat-image', class extends HTMLElement {
})
}
e.src = $(this).attr('src') as string
e.onclick = () => {
e.onclick = (event) => {
event.stopPropagation()
openImageViewer($(this).attr('src') as string)
}
this.appendChild(e)