feat: Header重排、共享配方到公共库、待审核配方、权限优化 #17

Merged
fam merged 39 commits from fix/ui-polish-round2 into main 2026-04-09 18:37:12 +00:00
Showing only changes of commit 2417ea2525 - Show all commits

View File

@@ -55,15 +55,12 @@
class="card-brand-bg"
:style="{ backgroundImage: `url('${brand.brand_bg}')` }"
/>
<div v-if="brand.qr_code" class="card-qr-wrapper">
<img
:src="brand.qr_code"
class="card-qr"
crossorigin="anonymous"
/>
<div v-if="brand.brand_name" class="card-qr-name">{{ brand.brand_name }}</div>
</div>
<div class="card-content">
<!-- QR floated right, aligns with brand text top -->
<div v-if="brand.qr_code" class="card-qr-float">
<img :src="brand.qr_code" class="card-qr" crossorigin="anonymous" />
<div v-if="brand.brand_name" class="card-qr-name">{{ brand.brand_name }}</div>
</div>
<div class="card-brand-text">
{{ cardLang === 'en' ? 'doTERRA · Gifts of the Earth' : 'doTERRA · 来自大地的礼物' }}
</div>
@@ -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 {