fix: footer year text (#88)

* fix: footer year text

* fix: oauth2 list add space

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
This commit is contained in:
仓鼠
2025-01-03 22:43:00 +08:00
committed by GitHub
parent 367e9ee46d
commit 290459997c
2 changed files with 13 additions and 10 deletions

View File

@@ -106,15 +106,18 @@ function Login() {
{t("Login")}
</Button>
</form>
<section className="flex items-center my-3 w-full">
<Separator className="flex-1" />
<div className="flex justify-center text-xs text-muted-foreground w-full max-w-[100px]">
OAuth2
</div>
<Separator className="flex-1" />
</section>
{settingData?.config?.oauth2_providers &&
settingData?.config?.oauth2_providers.length > 0 && (
<section className="flex items-center my-3 w-full">
<Separator className="flex-1" />
<div className="flex justify-center text-xs text-muted-foreground w-full max-w-[100px]">
OAuth2
</div>
<Separator className="flex-1" />
</section>
)}
</Form>
<div className="mt-3">
<div className="mt-3 flex flex-col space-y-2">
{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"

View File

@@ -43,8 +43,8 @@ export default function Root() {
<Outlet />
</div>
</div>
<footer className="mx-5 pb-5 text-foreground/50 font-light text-xs text-center">
&copy; 2019-2024 {t("nezha")} {settingData?.version}
<footer className="mx-5 py-5 text-foreground/50 font-light text-xs text-center">
&copy; 2019-{new Date().getFullYear()} {t("nezha")} {settingData?.version}
</footer>
</section>
<Toaster />