From dd8b20b01507885c4c415f34e6a70a0f55e8d22c Mon Sep 17 00:00:00 2001 From: xfy Date: Mon, 19 May 2025 15:01:20 +0800 Subject: [PATCH] chore: upgrade tailwindcss up to v4 --- app/g/[id]/page.tsx | 2 +- app/g/loading.tsx | 2 +- app/global-error.tsx | 4 +--- app/p/[slug]/loading.tsx | 2 +- app/p/[slug]/page.tsx | 2 +- components/common/back-to-top.tsx | 2 +- components/mdx/anchor.tsx | 2 +- components/mdx/link-anchor.tsx | 2 +- components/pages/blog/post-card.tsx | 2 +- components/pages/friends/friend-card.tsx | 2 +- components/pages/gists/gists-code-skeleton.tsx | 6 +++--- components/pages/gists/gists-code.tsx | 6 +++--- components/pages/gists/gists-skeleton.tsx | 2 +- components/pages/projects/project-card-skeleton.tsx | 2 +- components/pages/projects/project-card.tsx | 2 +- components/post/post-toc.tsx | 4 ++-- components/rua/loading/vercel-loading.tsx | 2 +- components/rua/tab/index.tsx | 4 ++-- components/rua/tab/tab-item.tsx | 2 +- content/posts/leptos-dark-mode.mdx | 2 +- next.config.mjs | 5 +++++ pnpm-lock.yaml | 4 ++-- styles/globals.css | 5 +++-- 23 files changed, 36 insertions(+), 32 deletions(-) diff --git a/app/g/[id]/page.tsx b/app/g/[id]/page.tsx index 1594eb0..f5682bf 100644 --- a/app/g/[id]/page.tsx +++ b/app/g/[id]/page.tsx @@ -35,7 +35,7 @@ export default async function Page({ height={32} className="rounded-lg-full " /> -

+

{gist.login} diff --git a/app/g/loading.tsx b/app/g/loading.tsx index 17371e5..024c1bf 100644 --- a/app/g/loading.tsx +++ b/app/g/loading.tsx @@ -14,7 +14,7 @@ const loading = () => {

diff --git a/app/global-error.tsx b/app/global-error.tsx index 980fe0d..5a101e7 100644 --- a/app/global-error.tsx +++ b/app/global-error.tsx @@ -16,9 +16,7 @@ const GlobalError = ({ className={clsx('w-full h-dvh flex', 'justify-center items-center')} >
-

- Something went wrong! ノ( OωOノ) -

+

Something went wrong! ノ( OωOノ)

diff --git a/app/p/[slug]/loading.tsx b/app/p/[slug]/loading.tsx index 223c753..261b3e9 100644 --- a/app/p/[slug]/loading.tsx +++ b/app/p/[slug]/loading.tsx @@ -11,7 +11,7 @@ const Page = async () => { id="article" className={clsx( 'relative max-w-4xl px-4 mx-auto my-10', - 'lg:w-[56rem] w-full flex-1', + 'lg:w-4xl w-full flex-1', 'mt-8', )} > diff --git a/app/p/[slug]/page.tsx b/app/p/[slug]/page.tsx index 856ce8d..dbf2d2d 100644 --- a/app/p/[slug]/page.tsx +++ b/app/p/[slug]/page.tsx @@ -62,7 +62,7 @@ const Page = async ({ id="article" className={clsx( 'relative max-w-4xl px-4 mx-auto my-10', - 'lg:w-[56rem] w-full flex-1', + 'lg:w-4xl w-full flex-1', )} >

{mdxSource.frontmatter?.title}

diff --git a/components/common/back-to-top.tsx b/components/common/back-to-top.tsx index 0e0b852..313b949 100644 --- a/components/common/back-to-top.tsx +++ b/components/common/back-to-top.tsx @@ -36,7 +36,7 @@ const BackToTop = () => {