diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue
index 52d4ee9..34eb920 100644
--- a/frontend/src/components/RecipeDetailOverlay.vue
+++ b/frontend/src/components/RecipeDetailOverlay.vue
@@ -1143,7 +1143,7 @@ async function saveRecipe() {
.card-qr-wrapper {
position: absolute;
- top: 34px;
+ top: 36px;
right: 36px;
display: flex;
flex-direction: column;
diff --git a/frontend/src/views/MyDiary.vue b/frontend/src/views/MyDiary.vue
index 6805a5d..ef1ad36 100644
--- a/frontend/src/views/MyDiary.vue
+++ b/frontend/src/views/MyDiary.vue
@@ -170,19 +170,31 @@
+
+
![]()
+
-
doTERRA · RECIPE CARD
+
doTERRA · 来自大地的礼物
配方名称
薰衣草 · 乳香 · 茶树
-
![]()
-
![]()
-
💰 ¥12.50
+
+
配方总成本 ¥12.50
+
+
+
![]()
+
+
制作日期:{{ new Date().toLocaleDateString('zh-CN') }}
+
+
{{ brandName }}
-
+
+
+
+
@@ -1031,11 +1043,10 @@ async function applyBusiness() {
color: var(--sage-dark);
}
-/* Card preview mini */
+/* Card preview mini — matches actual card layout */
.card-preview-mini {
position: relative;
width: 280px;
- height: 180px;
background: linear-gradient(145deg, #faf7f0, #f5ede0);
border-radius: 14px;
border: 1px solid #e0ccaa;
@@ -1050,49 +1061,60 @@ async function applyBusiness() {
background-position: center;
opacity: 0.15;
}
-.card-preview-content { position: relative; z-index: 1; }
+.card-preview-content {
+ position: relative;
+ z-index: 1;
+ padding-right: 50px; /* leave room for QR */
+}
.card-preview-qr {
position: absolute;
- top: 10px;
- right: 10px;
+ top: 16px;
+ right: 16px;
width: 40px;
height: 40px;
- object-fit: cover;
- border-radius: 4px;
- z-index: 1;
-}
-.card-preview-logo {
- position: absolute;
- bottom: 40px;
- left: 16px;
- height: 20px;
- width: auto;
object-fit: contain;
- z-index: 1;
+ border-radius: 4px;
+ z-index: 2;
}
.card-preview-cost {
- position: absolute;
- bottom: 12px;
- left: 16px;
- right: 16px;
- height: 24px;
+ position: relative;
+ z-index: 1;
+ margin-top: 12px;
+ height: 22px;
background: linear-gradient(135deg, var(--sage), #5a7d5e);
border-radius: 6px;
display: flex;
align-items: center;
- justify-content: center;
+ justify-content: space-between;
+ padding: 0 10px;
color: white;
- font-size: 10px;
+ font-size: 9px;
+}
+.card-preview-bottom {
+ position: relative;
z-index: 1;
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ margin-top: 8px;
+}
+.card-preview-logo {
+ height: 16px;
+ width: auto;
+ object-fit: contain;
+ opacity: 0.6;
+}
+.card-preview-date {
+ font-size: 8px;
+ color: var(--text-light);
+ letter-spacing: 0.5px;
}
.card-preview-brand {
- position: absolute;
- bottom: 40px;
- left: 16px;
- right: 16px;
- font-size: 9px;
- color: var(--text-light);
+ position: relative;
z-index: 1;
+ margin-top: 4px;
+ font-size: 8px;
+ color: var(--text-light);
white-space: pre-line;
}