From 2328a0ac628fe8077818729baeb1087f76a41ee5 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Tue, 8 Aug 2023 13:00:42 +0800 Subject: [PATCH] Update Layout.astro --- src/layouts/Layout.astro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 1f42880..c798a70 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -83,7 +83,10 @@ const { title, description } = Astro.props; text-decoration: none; } - code { - max-width: 100%; + p code { + word-break: break-all; /* This will allow the URL to break at any character */ + display: block; /* Ensures the entire URL is on its own line */ + width: 100%; /* Make sure the code element takes up the full width of its container */ + overflow-x: auto; }