From 613617da0b99ad551937c2a6b4fb72f762e178b8 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Fri, 11 Nov 2022 13:22:07 +0300 Subject: [PATCH] Minor layout fixes --- src/components/Topic/Card.module.scss | 4 - src/components/Views/AllAuthors.tsx | 140 +++++++++++++------------- src/components/Views/AllTopics.tsx | 140 ++++++++++++-------------- src/styles/app.scss | 3 +- 4 files changed, 135 insertions(+), 152 deletions(-) diff --git a/src/components/Topic/Card.module.scss b/src/components/Topic/Card.module.scss index 0f499cdd..4d68d697 100644 --- a/src/components/Topic/Card.module.scss +++ b/src/components/Topic/Card.module.scss @@ -3,10 +3,6 @@ margin-top: 3.2rem; .stats & { - @include media-breakpoint-down(sm) { - margin-left: 0; - } - .topicDetailsItem { margin-bottom: 1.2rem; } diff --git a/src/components/Views/AllAuthors.tsx b/src/components/Views/AllAuthors.tsx index 576bc1b9..2ba33ed0 100644 --- a/src/components/Views/AllAuthors.tsx +++ b/src/components/Views/AllAuthors.tsx @@ -57,82 +57,80 @@ export const AllAuthorsView = (props: Props) => { // log.debug(getSearchParams()) return ( -
+
0}> -
-
-
-
-

{t('Authors')}

-

{t('Subscribe who you like to tune your personal feed')}

-
+
+
+
+

{t('Authors')}

+

{t('Subscribe who you like to tune your personal feed')}

-
-
- - ( -
- - {(author) => ( - - )} - -
- )} - > - - {(letter) => ( -
-

{letter}

-
-
- - {(author: Author) => ( -
- +
+
+
+ + ( +
+ + {(author) => ( + + )} + +
+ )} + > + + {(letter) => ( +
+

{letter}

+
+
+ + {(author: Author) => ( +
+ - )} - -
+
+ )} +
- )} -
-
-
+
+ )} +
+
diff --git a/src/components/Views/AllTopics.tsx b/src/components/Views/AllTopics.tsx index 618811a4..687385eb 100644 --- a/src/components/Views/AllTopics.tsx +++ b/src/components/Views/AllTopics.tsx @@ -54,90 +54,80 @@ export const AllTopicsView = (props: AllTopicsViewProps) => { const subscribed = (s) => Boolean(session()?.news?.topics && session()?.news?.topics?.includes(s || '')) return ( -
+
0}> -
-
-
-
-

{t('Topics')}

-
-

{t('Subscribe what you like to tune your personal feed')}

-
+
+
+
+

{t('Topics')}

+
+

{t('Subscribe what you like to tune your personal feed')}

-
- - ( -
- + ( + + {(topic) => } + + )} + > + + {(letter) => ( +
+

{letter}

+
+
+ {(topic) => ( - +
+ +
)}
- )} - > - - {(letter) => ( -
-

{letter}

-
-
- - {(topic) => ( -
- -
- )} -
-
-
-
- )} -
- -
-
-
+
+
+ )} + +
diff --git a/src/styles/app.scss b/src/styles/app.scss index f8566695..18ef91a6 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -660,11 +660,10 @@ astro-island { .container { max-width: 1400px; - padding: 0; width: auto; @include media-breakpoint-down(sm) { - padding: 0 $container-padding-x * 0.5; + //padding: 0 $container-padding-x * 0.5; } }