From 8efb9219116a6c665d1059d3218c9405c616e404 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 7 Jan 2022 16:33:15 +0100 Subject: chore: adjust css grid on listing pages without sidebar --- src/pages/recherche/index.tsx | 5 +++-- src/pages/sujet/[slug].tsx | 19 +++++++++---------- src/pages/thematique/[slug].tsx | 19 +++++++++---------- 3 files changed, 21 insertions(+), 22 deletions(-) (limited to 'src/pages') diff --git a/src/pages/recherche/index.tsx b/src/pages/recherche/index.tsx index 5fe35a1..ece76eb 100644 --- a/src/pages/recherche/index.tsx +++ b/src/pages/recherche/index.tsx @@ -13,6 +13,7 @@ import Head from 'next/head'; import { useRouter } from 'next/router'; import { useEffect, useState } from 'react'; import useSWRInfinite from 'swr/infinite'; +import styles from '@styles/pages/Listing.module.scss'; const Search: NextPageWithLayout = () => { const [query, setQuery] = useState(''); @@ -72,9 +73,9 @@ const Search: NextPageWithLayout = () => { {head.title} -
+
-
+
{hasNextPage && (
); }; diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx index fb0eda5..72e469c 100644 --- a/src/pages/thematique/[slug].tsx +++ b/src/pages/thematique/[slug].tsx @@ -25,16 +25,15 @@ const Thematic: NextPageWithLayout = ({ thematic }) => { return (
-
- {thematic.posts.length > 0 && ( -
-

{t`All posts in ${thematic.title}`}

-
    {getPostsList()}
-
- )} +
+
+ {thematic.posts.length > 0 && ( +
+

{t`All posts in ${thematic.title}`}

+
    {getPostsList()}
+
+ )} +
); }; -- cgit v1.2.3