chore: tweak switch of notify channels

This commit is contained in:
lawvs 2025-09-05 15:50:31 +08:00
parent f2605390ef
commit df5acca9b7
1 changed files with 3 additions and 5 deletions

View File

@ -32,11 +32,8 @@ export const NotifyChannelsConfig = ({ value, onChange }: NotifyChannelsConfigPr
return (
<div className="space-y-3">
<div className="flex items-start gap-3 rounded-md border p-3 text-sm">
<div className="mt-0.5">
<Switch checked={enabled} onCheckedChange={toggle} />
</div>
<div className="flex flex-col gap-1">
<div className="flex items-center gap-3 rounded-md border p-3 text-sm">
<div className="flex flex-1 flex-col gap-1">
<div className="text-text flex items-center gap-1 font-medium">
<i className={cn("text-text-secondary size-4", EMAIL_CHANNEL.icon)} />
{t(EMAIL_CHANNEL.labelKey)}
@ -45,6 +42,7 @@ export const NotifyChannelsConfig = ({ value, onChange }: NotifyChannelsConfigPr
{t(EMAIL_CHANNEL.helperKey)}
</div>
</div>
<Switch checked={enabled} onCheckedChange={toggle} />
</div>
</div>
)