From 41e8458389cd7807d71ca136049abb866a414e4c Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Thu, 4 Sep 2025 11:19:47 -0500 Subject: [PATCH] fix: Optimize Recipe Context Menu (#6071) --- .../Domain/Recipe/RecipeActionMenu.vue | 2 +- .../components/Domain/Recipe/RecipeCard.vue | 7 +- .../Domain/Recipe/RecipeCardMobile.vue | 2 +- .../RecipeContextMenu/RecipeContextMenu.vue | 142 +++++++++ .../RecipeContextMenuContent.vue} | 270 ++++++++---------- 5 files changed, 265 insertions(+), 158 deletions(-) create mode 100644 frontend/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenu.vue rename frontend/components/Domain/Recipe/{RecipeContextMenu.vue => RecipeContextMenu/RecipeContextMenuContent.vue} (66%) diff --git a/frontend/components/Domain/Recipe/RecipeActionMenu.vue b/frontend/components/Domain/Recipe/RecipeActionMenu.vue index 1e77026e4..4a8c61f16 100644 --- a/frontend/components/Domain/Recipe/RecipeActionMenu.vue +++ b/frontend/components/Domain/Recipe/RecipeActionMenu.vue @@ -87,7 +87,7 @@ diff --git a/frontend/components/Domain/Recipe/RecipeContextMenu.vue b/frontend/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue similarity index 66% rename from frontend/components/Domain/Recipe/RecipeContextMenu.vue rename to frontend/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue index d7c423e80..93010fbe8 100644 --- a/frontend/components/Domain/Recipe/RecipeContextMenu.vue +++ b/frontend/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue @@ -1,159 +1,125 @@ - - - - - - - - {{ $t("recipe.admin-delete-confirmation") }} - - - {{ $t("recipe.delete-confirmation") }} - - - - - - - - - - - - - - - - - - - - - - - - - {{ icon }} - - + + + + + + {{ $t("recipe.admin-delete-confirmation") }} - - - - - {{ item.icon }} - - - {{ item.title }} - - - - - - - {{ $globals.icons.linkVariantPlus }} - - - - {{ action.title }} - - - - - - + + {{ $t("recipe.delete-confirmation") }} + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.icon }} + + + {{ item.title }} + + + + + + + {{ $globals.icons.linkVariantPlus }} + + + + {{ action.title }} + + + +