diff --git a/src/components/Author/Card.module.scss b/src/components/Author/Card.module.scss index a68b6e5b..ad75417e 100644 --- a/src/components/Author/Card.module.scss +++ b/src/components/Author/Card.module.scss @@ -15,12 +15,24 @@ .authorDetails { display: flex; flex: 1; - padding-right: 1.2rem; + //padding-right: 1.2rem; width: max-content; + + @include media-breakpoint-down(sm) { + flex-wrap: wrap; + } } .authorDetailsWrapper { - flex: 1; + flex: 1 100%; + + @include media-breakpoint-up(sm) { + flex: 1; + } + + @include media-breakpoint-up(md) { + padding-right: 1.2rem; + } } .authorName { @@ -33,6 +45,7 @@ .authorAbout { font-size: 1.5rem; color: rgb(0 0 0 / 60%); + word-break: break-word; } .authorSubscribe { @@ -118,6 +131,10 @@ button { margin-right: 0.5em; + + &:last-child { + margin-right: 0; + } } } @@ -221,3 +238,22 @@ vertical-align: middle; } } + +.authorsListItem { + .authorName { + @include font-size(2.2rem); + font-weight: bold; + } + + .authorSubscribe { + align-items: baseline; + + @include media-breakpoint-down(sm) { + padding: 1rem 0 0; + } + } + + .buttonLabel { + display: block; + } +} diff --git a/src/components/Author/Card.tsx b/src/components/Author/Card.tsx index 4608163c..4477ee34 100644 --- a/src/components/Author/Card.tsx +++ b/src/components/Author/Card.tsx @@ -1,7 +1,7 @@ import type { Author } from '../../graphql/types.gen' import Userpic from './Userpic' import { Icon } from '../Nav/Icon' -import style from './Card.module.scss' +import styles from './Card.module.scss' import { createMemo, For, Show } from 'solid-js' import { translit } from '../../utils/ru2en' import { t } from '../../utils/intl' @@ -19,6 +19,7 @@ interface AuthorCardProps { author: Author isAuthorPage?: boolean noSocialButtons?: boolean + isAuthorsList?: boolean } export const AuthorCard = (props: AuthorCardProps) => { @@ -36,51 +37,81 @@ export const AuthorCard = (props: AuthorCardProps) => { } // TODO: reimplement AuthorCard return ( -