fix: recipe context menu (#6782)

This commit is contained in:
Arsène Reymond
2026-01-30 21:08:49 +01:00
committed by GitHub
parent c7be4a452a
commit 79bbc20cd6
3 changed files with 2 additions and 9 deletions

View File

@@ -79,7 +79,7 @@
@print="$emit('print')" @print="$emit('print')"
/> />
</div> </div>
<div v-if="open" class="custom-btn-group gapped"> <div v-if="open" class="custom-btn-group gapped ma-1">
<v-btn <v-btn
v-for="(btn, index) in editorButtons" v-for="(btn, index) in editorButtons"
:key="index" :key="index"

View File

@@ -10,7 +10,6 @@
:nudge-top="menuTop ? '5' : '0'" :nudge-top="menuTop ? '5' : '0'"
allow-overflow allow-overflow
close-delay="125" close-delay="125"
:open-on-hover="$vuetify.display.mdAndUp"
content-class="d-print-none" content-class="d-print-none"
@update:model-value="onMenuToggle" @update:model-value="onMenuToggle"
> >
@@ -24,7 +23,6 @@
:fab="fab" :fab="fab"
v-bind="activatorProps" v-bind="activatorProps"
@click.prevent @click.prevent
@mouseenter="onHover"
> >
<v-icon <v-icon
:size="!fab ? undefined : 'x-large'" :size="!fab ? undefined : 'x-large'"
@@ -127,12 +125,6 @@ const contentProps = computed(() => {
return rest; return rest;
}); });
function onHover() {
if (!isMenuContentLoaded.value) {
isMenuContentLoaded.value = true;
}
}
function onMenuToggle(isOpen: boolean) { function onMenuToggle(isOpen: boolean) {
if (isOpen && !isMenuContentLoaded.value) { if (isOpen && !isMenuContentLoaded.value) {
isMenuContentLoaded.value = true; isMenuContentLoaded.value = true;

View File

@@ -176,6 +176,7 @@ const props = withDefaults(defineProps<Props>(), {
const emit = defineEmits<{ const emit = defineEmits<{
[key: string]: any; [key: string]: any;
deleted: [slug: string]; deleted: [slug: string];
print: [];
}>(); }>();
const api = useUserApi(); const api = useUserApi();