From 296011eb573352fda4f430ca0b4c809b654a80ac Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Mon, 21 Nov 2022 01:10:07 +0300 Subject: [PATCH 1/2] Style fixes --- src/components/Author/Card.module.scss | 4 +- src/components/Author/Full.scss | 1 - src/components/Author/Full.tsx | 8 +- src/components/Views/Author.tsx | 120 ++++++++++++------------- 4 files changed, 64 insertions(+), 69 deletions(-) diff --git a/src/components/Author/Card.module.scss b/src/components/Author/Card.module.scss index 8c26fd24..91ac16b3 100644 --- a/src/components/Author/Card.module.scss +++ b/src/components/Author/Card.module.scss @@ -15,9 +15,6 @@ .authorDetails { display: flex; flex: 1; - width: max-content; - - // padding-right: 1.2rem; @include media-breakpoint-down(sm) { flex-wrap: wrap; @@ -193,6 +190,7 @@ .authorSubscribe { margin-top: 2rem; + padding-left: 0; } .authorDetails { diff --git a/src/components/Author/Full.scss b/src/components/Author/Full.scss index 4b505f0d..65db4de0 100644 --- a/src/components/Author/Full.scss +++ b/src/components/Author/Full.scss @@ -1,6 +1,5 @@ .user-details { margin-bottom: 4.4rem; - padding: 0; } .author-page { diff --git a/src/components/Author/Full.tsx b/src/components/Author/Full.tsx index ddd25c1b..b240ae2b 100644 --- a/src/components/Author/Full.tsx +++ b/src/components/Author/Full.tsx @@ -4,11 +4,9 @@ import './Full.scss' export const AuthorFull = (props: { author: Author }) => { return ( -
-
-
- -
+
+
+
) diff --git a/src/components/Views/Author.tsx b/src/components/Views/Author.tsx index ab64da1b..4811812c 100644 --- a/src/components/Views/Author.tsx +++ b/src/components/Views/Author.tsx @@ -70,73 +70,73 @@ export const AuthorView = (props: AuthorProps) => { ) return ( -
+
{t('Loading')}
}> - -
-
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
-
-
- {`${t('Show')} `} - {t('All posts')} +
+ +
+
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+ {`${t('Show')} `} + {t('All posts')} +
+
+ +

{title()}

-

{title()}

+ + + + + -
- - - - - + + {(page) => ( + <> + + + + + )} + - - {(page) => ( - <> - - - - - )} - - - -

- -

-
-
+ +

+ +

+
) From bee558834f07942538aab43fb39255dfec682728 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Mon, 21 Nov 2022 01:19:03 +0300 Subject: [PATCH 2/2] Minor style fix --- src/components/Views/AllAuthors.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Views/AllAuthors.tsx b/src/components/Views/AllAuthors.tsx index 52addabb..19bbff17 100644 --- a/src/components/Views/AllAuthors.tsx +++ b/src/components/Views/AllAuthors.tsx @@ -182,7 +182,7 @@ export const AllAuthorsView = (props: Props) => { -
+
{(author) => (