From 2417ea2525ae6f03fffcba17d191816c4b51da9e Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Thu, 9 Apr 2026 12:09:26 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20QR=E6=94=B9=E4=B8=BAfloat=20right?= =?UTF-8?q?=E8=87=AA=E7=84=B6=E5=AF=B9=E9=BD=90=E6=96=87=E5=AD=97=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=86=8Dabsolute=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配方卡片: - QR从.export-card的absolute定位改为.card-content内float right - QR自然跟"来自大地的礼物"文字顶端对齐 - 右侧边缘跟内容区域对齐(不再需要手动算padding偏移) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/RecipeDetailOverlay.vue | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 34eb920..9ca9926 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -55,15 +55,12 @@ class="card-brand-bg" :style="{ backgroundImage: `url('${brand.brand_bg}')` }" /> -
- -
{{ brand.brand_name }}
-
+ +
+ +
{{ brand.brand_name }}
+
{{ cardLang === 'en' ? 'doTERRA · Gifts of the Earth' : 'doTERRA · 来自大地的礼物' }}
@@ -1141,15 +1138,14 @@ async function saveRecipe() { pointer-events: none; } -.card-qr-wrapper { - position: absolute; - top: 36px; - right: 36px; +.card-qr-float { + float: right; display: flex; flex-direction: column; align-items: center; gap: 3px; - z-index: 2; + margin-left: 12px; + margin-bottom: 8px; } .card-qr {