fix: 验证码图片改为完整显示并补上角度提示
Sync source to CNB / Sync Git ref (push) Skipped

This commit is contained in:
AxTps committed 2026-10-20 22:15:04 +08:00
1 parent fd341d4b9e
commit afc03152e4
1 file changed
+7 -6
@@ -100,16 +100,19 @@ defineExpose({ show })
<p class="m-0 text-secondary">{{ formatMessage(messages.subtitle) }}</p> <p class="m-0 text-secondary">{{ formatMessage(messages.subtitle) }}</p>
<div <div
class="size-44 overflow-hidden rounded-full border-4 border-solid border-bg-raised bg-button-bg" class="relative size-64 overflow-hidden rounded-2xl border-2 border-solid border-surface-5 bg-bg"
> >
<img <img
v-if="image" v-if="image"
:src="image" :src="image"
alt="" alt=""
class="size-full object-cover transition-transform duration-75" class="size-full object-contain transition-transform duration-75"
:style="{ transform: `rotate(${previewRotation})` }" :style="{ transform: `rotate(${previewRotation})` }"
draggable="false" draggable="false"
/> />
<div v-else class="flex size-full items-center justify-center text-sm text-secondary">
{{ formatMessage(messages.loading) }}
</div>
</div> </div>
<div class="w-full max-w-sm"> <div class="w-full max-w-sm">
@@ -122,11 +125,9 @@ defineExpose({ show })
class="w-full accent-brand" class="w-full accent-brand"
:disabled="loading || submitting" :disabled="loading || submitting"
/> />
<div class="mt-1 flex justify-between text-xs text-secondary"> <div class="mt-1 flex items-center justify-between text-xs text-secondary">
<span>0°</span> <span>0°</span>
<span>90°</span> <span class="font-semibold text-contrast">{{ degree }}°</span>
<span>180°</span>
<span>270°</span>
<span>360°</span> <span>360°</span>
</div> </div>
</div> </div>