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")} {t("Login")}
</Button> </Button>
</form> </form>
<section className="flex items-center my-3 w-full"> {settingData?.config?.oauth2_providers &&
<Separator className="flex-1" /> settingData?.config?.oauth2_providers.length > 0 && (
<div className="flex justify-center text-xs text-muted-foreground w-full max-w-[100px]"> <section className="flex items-center my-3 w-full">
OAuth2 <Separator className="flex-1" />
</div> <div className="flex justify-center text-xs text-muted-foreground w-full max-w-[100px]">
<Separator className="flex-1" /> OAuth2
</section> </div>
<Separator className="flex-1" />
</section>
)}
</Form> </Form>
<div className="mt-3"> <div className="mt-3 flex flex-col space-y-2">
{settingData?.config?.oauth2_providers?.map((p: string) => ( {settingData?.config?.oauth2_providers?.map((p: string) => (
<Button <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" 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 /> <Outlet />
</div> </div>
</div> </div>
<footer className="mx-5 pb-5 text-foreground/50 font-light text-xs text-center"> <footer className="mx-5 py-5 text-foreground/50 font-light text-xs text-center">
&copy; 2019-2024 {t("nezha")} {settingData?.version} &copy; 2019-{new Date().getFullYear()} {t("nezha")} {settingData?.version}
</footer> </footer>
</section> </section>
<Toaster /> <Toaster />