1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 07:25:04 +02:00

fix(frontend): Update MkLightbox.item.vue

This commit is contained in:
かっこかり
2026-07-17 14:44:03 +09:00
committed by GitHub
parent b5f0e96bf1
commit 8691babd56

View File

@@ -795,8 +795,11 @@ function openMenu(ev: PointerEvent) {
});
if (props.content.file != null) {
menu.push({ type: 'divider' });
menu.push(...getFileMenu(props.content.file));
const fileMenu = getFileMenu(props.content.file);
if (fileMenu.length > 0) {
menu.push({ type: 'divider' });
menu.push(...fileMenu);
}
}
os.popupMenu(menu, (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined);