feat: 更新复选框样式为切换开关,提升用户体验

This commit is contained in:
Vixalie
2026-03-29 22:30:22 +08:00
parent e726dfce11
commit 947ea31fe0

View File

@@ -57,7 +57,7 @@ async function saveUnifiedRatio() {
sizeFeedback === 'updated' && 'text-green-600',
sizeFeedback === 'not-updated' && 'text-red-600',
]}>
<input type="checkbox" bind:checked={unifiedSize} onchange={saveUnifiedSize} class="checkbox" />
<input type="checkbox" bind:checked={unifiedSize} onchange={saveUnifiedSize} class="toggle" />
Unified Size
</label>
<label
@@ -71,7 +71,7 @@ async function saveUnifiedRatio() {
bind:checked={unifiedRatio}
onchange={saveUnifiedRatio}
disabled={!unifiedSize}
class="checkbox" />
class="toggle" />
Unified Ratio
</label>
</div>