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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user