embedではデフォルトのコンテキストメニューを出すように

This commit is contained in:
kakkokari-gtyih 2024-06-03 21:11:54 +09:00
parent d222c7e824
commit 8cdb6bbb9d
2 changed files with 7 additions and 0 deletions

View File

@ -667,6 +667,11 @@ function loadConversation() {
height: 58px;
}
.embeddedNote .noteHeaderAvatar {
width: 50px;
height: 50px;
}
.noteHeaderBody {
flex: 1;
display: flex;

View File

@ -633,6 +633,8 @@ export function popupMenu(items: MenuItem[], src?: HTMLElement | EventTarget | n
}
export function contextMenu(items: MenuItem[], ev: MouseEvent): Promise<void> {
if (isEmbedPage()) return Promise.resolve();
ev.preventDefault();
return new Promise(resolve => {
let dispose;