fix: Logo放在总成本下方靠左,QR与标题顶端/日期右侧对齐
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Failing after 1m42s
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Failing after 1m42s
- Logo: 从absolute改为flow layout,放在总成本和制作日期之间 左侧显示logo,右侧显示制作日期(flex space-between) 没有logo时日期仍靠右 - QR: right改为36px(与卡片padding对齐),top微调到34px 右边缘与制作日期右侧对齐 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,13 +63,6 @@
|
|||||||
/>
|
/>
|
||||||
<div v-if="brand.brand_name" class="card-qr-name">{{ brand.brand_name }}</div>
|
<div v-if="brand.brand_name" class="card-qr-name">{{ brand.brand_name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<img
|
|
||||||
v-if="brand.brand_logo"
|
|
||||||
:src="brand.brand_logo"
|
|
||||||
class="card-logo"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-brand-text">
|
<div class="card-brand-text">
|
||||||
{{ cardLang === 'en' ? 'doTERRA · Gifts of the Earth' : 'doTERRA · 来自大地的礼物' }}
|
{{ cardLang === 'en' ? 'doTERRA · Gifts of the Earth' : 'doTERRA · 来自大地的礼物' }}
|
||||||
@@ -117,12 +110,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Date -->
|
<!-- Logo + Date row -->
|
||||||
|
<div class="card-bottom-row">
|
||||||
|
<img
|
||||||
|
v-if="brand.brand_logo"
|
||||||
|
:src="brand.brand_logo"
|
||||||
|
class="card-logo"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
/>
|
||||||
|
<div v-else class="card-logo-placeholder"></div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
{{ cardLang === 'en' ? 'Date: ' : '制作日期:' }}{{ todayStr }}
|
{{ cardLang === 'en' ? 'Date: ' : '制作日期:' }}{{ todayStr }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Rendered card image -->
|
<!-- Rendered card image -->
|
||||||
<div v-if="cardImageUrl" class="card-image-wrapper">
|
<div v-if="cardImageUrl" class="card-image-wrapper">
|
||||||
@@ -1141,8 +1143,8 @@ async function saveRecipe() {
|
|||||||
|
|
||||||
.card-qr-wrapper {
|
.card-qr-wrapper {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 36px;
|
top: 34px;
|
||||||
right: 24px;
|
right: 36px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1168,14 +1170,18 @@ async function saveRecipe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-logo {
|
.card-logo {
|
||||||
position: absolute;
|
height: 28px;
|
||||||
bottom: 60px;
|
|
||||||
left: 24px;
|
|
||||||
height: 60px;
|
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
z-index: 1;
|
opacity: 0.6;
|
||||||
opacity: 0.2;
|
}
|
||||||
pointer-events: none;
|
.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 {
|
.card-brand-text {
|
||||||
@@ -1298,7 +1304,6 @@ async function saveRecipe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-footer {
|
.card-footer {
|
||||||
margin-top: 16px;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: var(--text-light, #9a8570);
|
color: var(--text-light, #9a8570);
|
||||||
|
|||||||
Reference in New Issue
Block a user