From f4ff971c854c98856597b686a23fbf5f30fe2c62 Mon Sep 17 00:00:00 2001 From: joyzhao Date: Thu, 19 Jun 2025 18:26:05 +0800 Subject: [PATCH] refactor(Container): simplify container component and remove size prop Remove size variants from Container component and set a default max-width Update all instances where Container was used with size prop to use default --- src/components/Footer.tsx | 2 +- src/components/GlassHeader.tsx | 2 +- src/components/ui/Container.tsx | 17 ++--------------- src/layouts/AboutLayout.astro | 2 +- src/layouts/BlogPostLayout.astro | 2 +- src/layouts/TaxonomyPageLayout.astro | 2 +- src/pages/blog/index.astro | 4 ++-- src/pages/index.astro | 8 ++++---- src/pages/projects.astro | 4 ++-- src/pages/zh/blog/index.astro | 4 ++-- src/pages/zh/index.astro | 8 ++++---- src/pages/zh/projects.astro | 4 ++-- 12 files changed, 23 insertions(+), 36 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 328e8c7..d2b6740 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -21,7 +21,7 @@ export default function Footer({ lang: propLang }: FooterProps) { const t = useTranslations(lang); return (