From f64b8ba53c57683934b959905fc0b017141427e4 Mon Sep 17 00:00:00 2001 From: streaper2 Date: Sun, 10 May 2026 13:54:50 +0200 Subject: [PATCH] UI: simplify article layout and fix text wrapping --- app/blog/[id]/page.tsx | 29 +++++++++++++++-------------- app/globals.css | 5 ++--- next-env.d.ts | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/blog/[id]/page.tsx b/app/blog/[id]/page.tsx index 1c214b1..5a29697 100644 --- a/app/blog/[id]/page.tsx +++ b/app/blog/[id]/page.tsx @@ -63,24 +63,25 @@ export default async function BlogPostPage({ params }: Props) { } return ( -
- {/* Hero Image */} -
- {post.title} -
-
- +
+
+ {/* Navigation */} +
+ Retour aux articles
-
-
-
+
+ {/* Header Image */} +
+ {post.title} +
+ {/* Header */}
diff --git a/app/globals.css b/app/globals.css index b63cb03..244451a 100644 --- a/app/globals.css +++ b/app/globals.css @@ -26,11 +26,10 @@ body { } .prose { - text-align: justify; + text-align: left; hyphens: none; word-break: normal; - overflow-wrap: normal; - overflow-x: auto; + overflow-wrap: break-word; } .prose p { diff --git a/next-env.d.ts b/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.