fix: Fix login provider button gap (#94)

* fix: oauth2_providers button gap

* fix: remove test code
This commit is contained in:
仓鼠
2025-01-06 21:02:58 +08:00
committed by GitHub
parent a45e789178
commit fb681b6470

View File

@@ -117,13 +117,13 @@ function Login() {
</section>
)}
</Form>
<div className="mt-3 flex flex-col space-y-2">
<div className="mt-3 flex flex-col gap-3">
{settingData?.config?.oauth2_providers?.map((p: string) => (
<Button
className="w-full rounded-lg shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] bg-muted text-primary hover:bg-muted/80 hover:text-primary/80 mb-3"
className="w-full rounded-lg shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] bg-muted text-primary hover:bg-muted/80 hover:text-primary/80"
onClick={() => loginWith(p)}
>
{p === "GitHub" && <GitHubIcon className="-mt-[1px] size-4" />}
{p === "GitHub" && <GitHubIcon className="size-4" />}
{p}
</Button>
))}