From 5f72b93d9219155653d26b1805f006d620cf23d2 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Mon, 9 Jun 2025 11:42:33 +0700 Subject: [PATCH] refactor: extract redundant max-width into utility (#525) * refactor: extract redundant max-width into utility Extract redundant max-width into a universal tailwind utility class. By doing so, the width of the layout in different pages can be customized easily. * docs: update docs for modifying `max-w-app` utility --- src/components/BackButton.astro | 2 +- src/components/Breadcrumb.astro | 2 +- src/components/Header.astro | 2 +- src/components/Hr.astro | 2 +- src/data/blog/how-to-configure-astropaper-theme.md | 13 +++++++++++++ src/layouts/AboutLayout.astro | 2 +- src/layouts/Main.astro | 2 +- src/layouts/PostDetails.astro | 4 ++-- src/pages/404.astro | 2 +- src/styles/global.css | 6 +++++- 10 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/components/BackButton.astro b/src/components/BackButton.astro index 80b6662..b16e33e 100644 --- a/src/components/BackButton.astro +++ b/src/components/BackButton.astro @@ -6,7 +6,7 @@ import { SITE } from "@/config"; { SITE.showBackButton && ( -
+
+