Skip to content

A self-hosted media server and file management system

fix: can't open folder in new tab on mobile (context menu is overridden)

aminnausin114d54338f44
diff --git a/resources/js/components/cards/data/FolderCard.vue b/resources/js/components/cards/data/FolderCard.vue
index 9625e1ec..dd7dd5d6 100644
--- a/resources/js/components/cards/data/FolderCard.vue
+++ b/resources/js/components/cards/data/FolderCard.vue
@@ -38,6 +38,14 @@ const contextMenuItems = computed(() => {
emit('otherAction', props.data.id, 'edit');
},
},
+ {
+ text: 'Open in New Tab',
+ icon: CircumFolderOn,
+ action: () => {
+ if (!props.data?.id) return;
+ window.open(`/${props.categoryName}/${props.data.name}`, '_blank');
+ },
+ },
];
});