From 1044873336d2a37cc4b34e559dd95414e2800be6 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Thu, 9 Apr 2026 11:01:10 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Logo=E6=94=BE=E5=9C=A8=E6=80=BB=E6=88=90?= =?UTF-8?q?=E6=9C=AC=E4=B8=8B=E6=96=B9=E9=9D=A0=E5=B7=A6=EF=BC=8CQR?= =?UTF-8?q?=E4=B8=8E=E6=A0=87=E9=A2=98=E9=A1=B6=E7=AB=AF/=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=8F=B3=E4=BE=A7=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Logo: 从absolute改为flow layout,放在总成本和制作日期之间 左侧显示logo,右侧显示制作日期(flex space-between) 没有logo时日期仍靠右 - QR: right改为36px(与卡片padding对齐),top微调到34px 右边缘与制作日期右侧对齐 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/RecipeDetailOverlay.vue | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 8a0b589..52d4ee9 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -63,13 +63,6 @@ />
{{ brand.brand_name }}
- -
{{ cardLang === 'en' ? 'doTERRA · Gifts of the Earth' : 'doTERRA · 来自大地的礼物' }} @@ -117,9 +110,18 @@
- - @@ -1141,8 +1143,8 @@ async function saveRecipe() { .card-qr-wrapper { position: absolute; - top: 36px; - right: 24px; + top: 34px; + right: 36px; display: flex; flex-direction: column; align-items: center; @@ -1168,14 +1170,18 @@ async function saveRecipe() { } .card-logo { - position: absolute; - bottom: 60px; - left: 24px; - height: 60px; + height: 28px; object-fit: contain; - z-index: 1; - opacity: 0.2; - pointer-events: none; + opacity: 0.6; +} +.card-logo-placeholder { + /* keeps footer right-aligned even without logo */ +} +.card-bottom-row { + display: flex; + justify-content: space-between; + align-items: flex-end; + margin-top: 16px; } .card-brand-text { @@ -1298,7 +1304,6 @@ async function saveRecipe() { } .card-footer { - margin-top: 16px; text-align: right; font-size: 11px; color: var(--text-light, #9a8570);