fix: 预览品牌名保留换行,配方卡片与预览布局一致
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 15s
Test / e2e-test (push) Failing after 1m21s

- 预览QR文字加 white-space: pre-line 保留换行
- 配方卡片结构: QR+品牌名(absolute右上) → 内容区(padding-right避让)
  → 精油列表(每行9px间距) → 总成本(绿色条) → Logo左+日期右
- 两者布局完全一致

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 12:25:14 +00:00
parent 765bc0facc
commit 472b554cd0

View File

@@ -1091,8 +1091,9 @@ async function applyBusiness() {
font-size: 6px;
color: var(--text-light);
line-height: 1.2;
word-break: break-all;
white-space: pre-line;
max-width: 50px;
text-align: center;
}
.card-preview-cost {
position: relative;