From 0b206d3a23f0876146dc17f5e507984362917696 Mon Sep 17 00:00:00 2001 From: techfg Date: Fri, 10 Jan 2025 13:00:29 -0800 Subject: [PATCH] Fixes display of long site title on mobile (#2722) Co-authored-by: Chris Swithinbank --- .changeset/cold-vans-tan.md | 5 +++++ packages/starlight/components/Header.astro | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/cold-vans-tan.md diff --git a/.changeset/cold-vans-tan.md b/.changeset/cold-vans-tan.md new file mode 100644 index 00000000000..6359ff20293 --- /dev/null +++ b/.changeset/cold-vans-tan.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Fixes display of long site title on mobile diff --git a/packages/starlight/components/Header.astro b/packages/starlight/components/Header.astro index fa87ce89570..47fb43fb16a 100644 --- a/packages/starlight/components/Header.astro +++ b/packages/starlight/components/Header.astro @@ -45,6 +45,7 @@ const shouldRenderSearch = /* Avoid clipping focus ring around link inside title wrapper. */ padding: 0.25rem; margin: -0.25rem; + min-width: 0; } .right-group,