fix: Fixed status page published switch

This commit is contained in:
2026-08-25 13:26:10 +00:00
parent 0a7a10aeed
commit e5947489e4
+2 -2
View File
@@ -107,10 +107,10 @@ function Switch({ checked, onChange, label }: { checked: boolean; onChange: (v:
aria-checked={checked}
aria-label={label}
onClick={() => onChange(!checked)}
className={`relative h-[21px] w-[38px] flex-shrink-0 rounded-full transition-colors ${checked ? "bg-success" : "bg-border"}`}
className={`relative h-[21px] w-[38px] flex-shrink-0 rounded-full border-0 p-0 transition-colors ${checked ? "bg-success" : "bg-border"}`}
>
<span
className={`absolute top-[2px] h-[17px] w-[17px] rounded-full transition-transform ${
className={`absolute left-0 top-[2px] h-[17px] w-[17px] rounded-full transition-transform ${
checked ? "translate-x-[19px] bg-accent-ink" : "translate-x-[2px] bg-text-tertiary"
}`}
/>