From e645fae8502bcc1c5b41d8194dfd2de0e06eec14 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Tue, 15 Nov 2022 00:58:33 +0300 Subject: [PATCH] Fixed all topics and all authors style --- src/components/Author/Card.module.scss | 5 +- src/components/Views/AllAuthors.tsx | 68 ++++++++++++++------------ src/components/Views/AllTopics.tsx | 22 +++++---- src/styles/AllTopics.module.scss | 4 +- 4 files changed, 52 insertions(+), 47 deletions(-) diff --git a/src/components/Author/Card.module.scss b/src/components/Author/Card.module.scss index b51d4c13..8c26fd24 100644 --- a/src/components/Author/Card.module.scss +++ b/src/components/Author/Card.module.scss @@ -52,10 +52,7 @@ .authorSubscribe { align-items: center; display: flex; - - @include media-breakpoint-down(lg) { - padding: 0 0 0 42px; - } + padding: 0 0 0 42px; a { background: #f7f7f7; diff --git a/src/components/Views/AllAuthors.tsx b/src/components/Views/AllAuthors.tsx index 1d0ba7bb..93a46f36 100644 --- a/src/components/Views/AllAuthors.tsx +++ b/src/components/Views/AllAuthors.tsx @@ -64,13 +64,10 @@ export const AllAuthorsView = (props: Props) => { 0}>
-
+

{t('Authors')}

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

-
-
-
- + + ( +
+
+
{(author) => ( { /> )} - limit()}> -
-
- -
-
-
- )} - > - - {(letter) => ( -
-

{letter}

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

{letter}

+
+
+
{(author: Author) => ( -
+
@@ -140,11 +146,11 @@ export const AllAuthorsView = (props: Props) => {
- )} - - -
-
+
+
+ )} +
+
diff --git a/src/components/Views/AllTopics.tsx b/src/components/Views/AllTopics.tsx index 8161dfc5..fd676ba6 100644 --- a/src/components/Views/AllTopics.tsx +++ b/src/components/Views/AllTopics.tsx @@ -127,15 +127,19 @@ export const AllTopicsView = (props: AllTopicsViewProps) => {

{letter}

- - {(topic) => ( -
- -
- )} -
+
+
+ + {(topic) => ( +
+ +
+ )} +
+
+
diff --git a/src/styles/AllTopics.module.scss b/src/styles/AllTopics.module.scss index 83d4cd15..4129e8f2 100644 --- a/src/styles/AllTopics.module.scss +++ b/src/styles/AllTopics.module.scss @@ -17,9 +17,7 @@ } .topic { - @include media-breakpoint-down(md) { - margin-top: 1.6rem; - } + margin-bottom: 1.6rem; @include media-breakpoint-down(sm) { margin-left: 2.6rem;