From e4aa81ff30ff5ebc767fe6c9ed847bb4a0140db2 Mon Sep 17 00:00:00 2001
From: clombion <8268300+clombion@users.noreply.github.com>
Date: Sun, 19 Jul 2026 13:46:55 +0200
Subject: [PATCH] fix: wrap long dataset titles to prevent horizontal overflow
A dataset title with a long unbroken token (e.g. a filename-style slug)
had no break opportunity, so it stretched its container past the viewport
width. On the dataset page the title ran off-screen; on the mobile home
page it widened a card in the latest-datasets grid, pushing the whole
document wider than the viewport so the hero no longer spanned the screen.
Wrap titles and let their grid/flex tracks shrink:
- HeroSection h1, MainSection card title, DatasetItem title, and the
ResourcesList resource name get break-words.
- The home latest-datasets grid is single-column on mobile (grid-cols-1)
with min-w-0 cards, and the search results column gets min-w-0, so a
long token can no longer force a track wider than the viewport.
---
components/_shared/HeroSection.tsx | 2 +-
components/dataset/individualPage/ResourcesList.tsx | 2 +-
components/dataset/search/DatasetItem.tsx | 2 +-
components/home/mainSection/MainSection.tsx | 8 ++++----
pages/search.tsx | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/components/_shared/HeroSection.tsx b/components/_shared/HeroSection.tsx
index b193449..bf7408c 100644
--- a/components/_shared/HeroSection.tsx
+++ b/components/_shared/HeroSection.tsx
@@ -20,7 +20,7 @@ export default function HeroSection({
{eyebrow}
)}
-