From 3c108865db9c7e28e828eef6553b0ae5d9cac91c Mon Sep 17 00:00:00 2001 From: Maud Royer Date: Wed, 28 Aug 2024 12:37:19 +0200 Subject: [PATCH] feat: max line length on large layouts Signed-off-by: Maud Royer --- src/app/medicament/[CIS]/page.tsx | 72 ++++++++++++++++--------------- src/app/page.tsx | 46 +++++++++++--------- src/app/rechercher/page.tsx | 33 ++++++++------ 3 files changed, 83 insertions(+), 68 deletions(-) diff --git a/src/app/medicament/[CIS]/page.tsx b/src/app/medicament/[CIS]/page.tsx index 93a0dfa..a9e5ab8 100644 --- a/src/app/medicament/[CIS]/page.tsx +++ b/src/app/medicament/[CIS]/page.tsx @@ -319,40 +319,44 @@ export default async function Page({ {leaflet ? ( -
-
-

Notice

- {leaflet.maj} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+
+
+

Notice

+ {leaflet.maj} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
) : null} ); diff --git a/src/app/page.tsx b/src/app/page.tsx index 9b7e693..b27dd58 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,26 +4,30 @@ import Button from "@codegouvfr/react-dsfr/Button"; export default async function Page() { return ( - <> -
-

Quel médicament cherchez-vous ?

- - } - nativeInputProps={{ - placeholder: "Rechercher", - name: "s", - type: "search", - }} - /> -
- +
+
+
+

+ Quel médicament cherchez-vous ? +

+ + } + nativeInputProps={{ + placeholder: "Rechercher", + name: "s", + type: "search", + }} + /> +
+
+
); } diff --git a/src/app/rechercher/page.tsx b/src/app/rechercher/page.tsx index 5b63d8d..22904b8 100644 --- a/src/app/rechercher/page.tsx +++ b/src/app/rechercher/page.tsx @@ -60,19 +60,26 @@ export default async function Page({ return ( <> -
- } - nativeInputProps={{ - name: "s", - placeholder: "Rechercher", - ...(search ? { defaultValue: search } : {}), - type: "search", - }} - /> -
+
+
+ {" "} +
+ + } + nativeInputProps={{ + name: "s", + placeholder: "Rechercher", + ...(search ? { defaultValue: search } : {}), + type: "search", + }} + /> +
+
+
{results && ( <>

{results.specialites.length} RÉSULTATS