From 4655040153b5aaef001b2dfd73677396ab2202b3 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Tue, 7 Apr 2026 21:41:49 +0000 Subject: [PATCH] Fix recipe detail overlay: layout, buttons, price columns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove "卡片预览" tab text, use top bar with action buttons - Move language toggle (中文/English) to top of card view - Fix favorite button: check recipe _id before toggling - Fix save-to-diary: match API fields (name, source_recipe_id) - Use custom translations in card rendering (getCardOilName/getCardRecipeName) - Swap price columns: cost first, retail strikethrough after - Add retail strikethrough price in total cost bar Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/RecipeDetailOverlay.vue | 197 ++++++++++-------- 1 file changed, 107 insertions(+), 90 deletions(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 9a7e1e9..5f8c771 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -1,32 +1,41 @@