From 278306a28450ec0d83573f3444549de03a727726 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Feb 2026 13:16:44 +0000 Subject: [PATCH] feat: add hyphens-auto to page titles and h1 elements Apply CSS hyphens: auto to all h1 headings across the site, matching the existing behavior on prose text. This improves text wrapping for long titles on narrow viewports, primarily benefiting Firefox users. https://claude.ai/code/session_01TeX12YsoQYY2Tr1rC25Kkr --- apps/web/src/app/[locale]/(main)/[...path]/page.tsx | 4 +++- apps/web/src/app/[locale]/(main)/error.tsx | 2 +- apps/web/src/app/[locale]/(main)/events/[slug]/page.tsx | 4 +++- apps/web/src/app/[locale]/(main)/global-error.tsx | 2 +- apps/web/src/app/[locale]/(main)/not-found.tsx | 2 +- apps/web/src/app/[locale]/(main)/page.tsx | 4 ++-- apps/web/src/custom-pages/all-events-page.tsx | 4 +++- apps/web/src/custom-pages/events-page.tsx | 2 +- apps/web/src/custom-pages/weekly-newsletters-list-page.tsx | 2 +- 9 files changed, 16 insertions(+), 10 deletions(-) diff --git a/apps/web/src/app/[locale]/(main)/[...path]/page.tsx b/apps/web/src/app/[locale]/(main)/[...path]/page.tsx index 025d810c..67df4e28 100644 --- a/apps/web/src/app/[locale]/(main)/[...path]/page.tsx +++ b/apps/web/src/app/[locale]/(main)/[...path]/page.tsx @@ -160,7 +160,9 @@ async function Page(props: Props) { className="relative mb-8 flex flex-col items-center gap-2 md:gap-6" >
-

{page.title}

+

+ {page.title} +

diff --git a/apps/web/src/app/[locale]/(main)/error.tsx b/apps/web/src/app/[locale]/(main)/error.tsx index 363809c9..46888780 100644 --- a/apps/web/src/app/[locale]/(main)/error.tsx +++ b/apps/web/src/app/[locale]/(main)/error.tsx @@ -18,7 +18,7 @@ function ErrorContent({ return (
-

+

{t("Something went wrong")}

diff --git a/apps/web/src/app/[locale]/(main)/events/[slug]/page.tsx b/apps/web/src/app/[locale]/(main)/events/[slug]/page.tsx index db1879bd..b522d6b7 100644 --- a/apps/web/src/app/[locale]/(main)/events/[slug]/page.tsx +++ b/apps/web/src/app/[locale]/(main)/events/[slug]/page.tsx @@ -437,7 +437,9 @@ export default async function Page(props: PageProps) {
{t("Back")} -

{event.data.title}

+

+ {event.data.title} +

diff --git a/apps/web/src/app/[locale]/(main)/global-error.tsx b/apps/web/src/app/[locale]/(main)/global-error.tsx index abf70aad..10862c23 100644 --- a/apps/web/src/app/[locale]/(main)/global-error.tsx +++ b/apps/web/src/app/[locale]/(main)/global-error.tsx @@ -20,7 +20,7 @@ function GlobalErrorContent({ className="relative mb-8 flex flex-col items-center gap-2 md:gap-6" >
-

+

{t("Something went wrong")}

diff --git a/apps/web/src/app/[locale]/(main)/not-found.tsx b/apps/web/src/app/[locale]/(main)/not-found.tsx index 0e1b36a0..524f4d63 100644 --- a/apps/web/src/app/[locale]/(main)/not-found.tsx +++ b/apps/web/src/app/[locale]/(main)/not-found.tsx @@ -15,7 +15,7 @@ function NotFoundContent() { className="relative mb-8 flex flex-col items-center gap-2 md:gap-6" >
-

+

404 - {t("Page not found")}

diff --git a/apps/web/src/app/[locale]/(main)/page.tsx b/apps/web/src/app/[locale]/(main)/page.tsx index 420cd7f6..f0111417 100644 --- a/apps/web/src/app/[locale]/(main)/page.tsx +++ b/apps/web/src/app/[locale]/(main)/page.tsx @@ -64,7 +64,7 @@ export default async function Home(props: { {/* Desktop view */}
-

+

Tietokilta

@@ -83,7 +83,7 @@ export default async function Home(props: { {announcement ? : null}
-

+

Tietokilta

diff --git a/apps/web/src/custom-pages/all-events-page.tsx b/apps/web/src/custom-pages/all-events-page.tsx index 43f915ed..8b1ea71e 100644 --- a/apps/web/src/custom-pages/all-events-page.tsx +++ b/apps/web/src/custom-pages/all-events-page.tsx @@ -18,7 +18,9 @@ export default async function Page() {
{tAction("Back")} -

{tIlmo("All events")}

+

+ {tIlmo("All events")} +

    {events.data?.reverse().map((event) => ( diff --git a/apps/web/src/custom-pages/events-page.tsx b/apps/web/src/custom-pages/events-page.tsx index 519fadbb..404c1b1c 100644 --- a/apps/web/src/custom-pages/events-page.tsx +++ b/apps/web/src/custom-pages/events-page.tsx @@ -60,7 +60,7 @@ export default async function Page() {
    {tAction("Back")} -

    {tIlmo("Events")}

    +

    {tIlmo("Events")}

      {upcomingEvents.data.map((event) => ( diff --git a/apps/web/src/custom-pages/weekly-newsletters-list-page.tsx b/apps/web/src/custom-pages/weekly-newsletters-list-page.tsx index 53a4c509..73bad272 100644 --- a/apps/web/src/custom-pages/weekly-newsletters-list-page.tsx +++ b/apps/web/src/custom-pages/weekly-newsletters-list-page.tsx @@ -24,7 +24,7 @@ export default async function Page() { >
      -

      {t("title")}

      +

      {t("title")}

      {weeklyNewsletters.map((newsletter) => (