diff --git a/src/components/Author/AuthorBadge/AuthorBadge.module.scss b/src/components/Author/AuthorBadge/AuthorBadge.module.scss index 60568001..36508c1c 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.module.scss +++ b/src/components/Author/AuthorBadge/AuthorBadge.module.scss @@ -11,6 +11,9 @@ margin-bottom: 0; } } + @include media-breakpoint-down(sm) { + flex-direction: column; + } @include media-breakpoint-up(sm) { margin-bottom: 2rem; @@ -20,12 +23,23 @@ text-align: left; } + .basicInfo { + display: flex; + flex-direction: row; + align-items: center; + flex: 0 calc(100% - 5.2rem); + gap: 1rem; + + @include media-breakpoint-down(sm) { + flex: 0 100%; + } + } + .info { @include font-size(1.4rem); border: none; display: flex; - flex: 0 calc(100% - 5.2rem); flex-direction: column; line-height: 1.3; margin-bottom: 1rem; @@ -60,6 +74,10 @@ margin-left: 5.2rem; gap: 1rem; + @include media-breakpoint-down(sm) { + margin-left: 0; + } + @include media-breakpoint-up(sm) { margin-left: 2rem; } diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index de44b014..47ba693b 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -78,36 +78,38 @@ export const AuthorBadge = (props: Props) => { return (
- - -
- {props.author.name} -
- - - {t('Registered since {date}', { date: formatDate(new Date(props.author.createdAt)) })} -
- } - > - -
- - 0}> -
- {t('PublicationsWithCount', { count: props.author.stat?.shouts ?? 0 })} -
-
- - -
+
+ + +
+ {props.author.name} +
+ + + {t('Registered since {date}', { date: formatDate(new Date(props.author.createdAt)) })} +
+ } + > + +
+ + 0}> +
+ {t('PublicationsWithCount', { count: props.author.stat?.shouts ?? 0 })} +
+
+ + +
+