From 0606bbfa0be639451941b9be318188b0350ca546 Mon Sep 17 00:00:00 2001 From: Alexey Khaov Date: Fri, 27 Jan 2023 00:42:47 +0300 Subject: [PATCH] Comments block on the feed page --- src/components/Author/Card.module.scss | 16 +++++++++++++ src/components/Author/Card.tsx | 4 +++- src/components/Views/Feed.module.scss | 32 ++++++++++++++++++++++++++ src/components/Views/Feed.tsx | 20 ++++++++++++++-- 4 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/components/Author/Card.module.scss b/src/components/Author/Card.module.scss index f406b871..f4d974f7 100644 --- a/src/components/Author/Card.module.scss +++ b/src/components/Author/Card.module.scss @@ -307,3 +307,19 @@ .isSubscribing { opacity: 0.5; } + +.feedMode { + margin-bottom: 0.6rem; + + .authorName { + @include font-size(1.2rem); + margin-bottom: 0; + } + + .circlewrap { + height: 1.6rem; + margin-right: 0.4rem; + min-width: 1.6rem; + width: 1.6rem; + } +} diff --git a/src/components/Author/Card.tsx b/src/components/Author/Card.tsx index a821fd4c..f8618bc8 100644 --- a/src/components/Author/Card.tsx +++ b/src/components/Author/Card.tsx @@ -29,6 +29,7 @@ interface AuthorCardProps { truncateBio?: boolean liteButtons?: boolean isComments?: boolean + isFeedMode?: boolean } export const AuthorCard = (props: AuthorCardProps) => { @@ -83,7 +84,8 @@ export const AuthorCard = (props: AuthorCardProps) => { classList={{ [styles.authorPage]: props.isAuthorPage, [styles.authorComments]: props.isComments, - [styles.authorsListItem]: props.isAuthorsList + [styles.authorsListItem]: props.isAuthorsList, + [styles.feedMode]: props.isFeedMode }} > {

{t('Comments')}

    - - {(comment) => } + item.body)}> + {(comment) => { + return ( +
  • +
  • + ) + }}