From ec9c46968cbc3a795e9a33775dd143e8362f926b Mon Sep 17 00:00:00 2001 From: hongyi-chen Date: Wed, 3 Jun 2026 00:52:14 +0000 Subject: [PATCH] Fix copy button vertical alignment with page title The page copy button rendered between the H1 and the description because the title row used align-items: flex-start while the button wrapper added a 1rem top margin, pushing it below the H1's top edge. Center the title row and drop the button's top-margin offset so the button aligns vertically with the page title. Co-Authored-By: Oz --- src/components/CopyPageButton.astro | 1 - src/components/CustomPageTitle.astro | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/CopyPageButton.astro b/src/components/CopyPageButton.astro index f844f15b..6dd9f7a5 100644 --- a/src/components/CopyPageButton.astro +++ b/src/components/CopyPageButton.astro @@ -219,7 +219,6 @@ const claudeUrl = `https://claude.ai/new?q=${prompt}`; position: relative; display: inline-flex; align-items: center; - margin-top: 1rem; } /* Matches the Search + Ask paired-chrome pills via the shared diff --git a/src/components/CustomPageTitle.astro b/src/components/CustomPageTitle.astro index d6902c10..d436058b 100644 --- a/src/components/CustomPageTitle.astro +++ b/src/components/CustomPageTitle.astro @@ -55,7 +55,7 @@ const eyebrow = topicLabel && parentGroup && parentGroup !== topicLabel