Author page style fixes
This commit is contained in:
parent
8e6b70eb7e
commit
7c74980464
|
@ -231,8 +231,8 @@ export const AuthorCard = (props: Props) => {
|
||||||
/>
|
/>
|
||||||
</Match>
|
</Match>
|
||||||
</Switch>
|
</Switch>
|
||||||
<Switch>
|
|
||||||
<Match when={props.following && props.following.length > 0 && !props.isCurrentUser}>
|
<Show when={props.following && props.following.length > 0}>
|
||||||
<a href="?modal=following" class={styles.subscribers}>
|
<a href="?modal=following" class={styles.subscribers}>
|
||||||
<For each={props.following.slice(0, 3)}>
|
<For each={props.following.slice(0, 3)}>
|
||||||
{(f) => {
|
{(f) => {
|
||||||
|
@ -248,23 +248,12 @@ export const AuthorCard = (props: Props) => {
|
||||||
{t('SubscriberWithCount', { count: props?.following.length ?? 0 })}
|
{t('SubscriberWithCount', { count: props?.following.length ?? 0 })}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</Match>
|
</Show>
|
||||||
<Match when={props.following && props.following.length > 0 && props.isCurrentUser}>
|
|
||||||
<SharePopup
|
|
||||||
containerCssClass={stylesHeader.control}
|
|
||||||
title={props.author.name}
|
|
||||||
description={props.author.bio}
|
|
||||||
imageUrl={props.author.userpic}
|
|
||||||
shareUrl={getShareUrl({ pathname: `/author/${props.author.slug}` })}
|
|
||||||
trigger={<Button variant="secondary" value={t('Share')} />}
|
|
||||||
/>
|
|
||||||
</Match>
|
|
||||||
</Switch>
|
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
<ShowOnlyOnClient>
|
<ShowOnlyOnClient>
|
||||||
<Show when={isSessionLoaded()}>
|
<Show when={isSessionLoaded() && props.author.links}>
|
||||||
<div class={styles.authorSubscribeSocial}>
|
<div class={styles.authorSubscribeSocial}>
|
||||||
<For each={props.author.links}>
|
<For each={props.author.links}>
|
||||||
{(link) => (
|
{(link) => (
|
||||||
|
@ -384,6 +373,19 @@ export const AuthorCard = (props: Props) => {
|
||||||
</Modal>
|
</Modal>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
|
<Show when={props.isCurrentUser}>
|
||||||
|
<div class={styles.subscribersContainer}>
|
||||||
|
<SharePopup
|
||||||
|
containerCssClass={stylesHeader.control}
|
||||||
|
title={props.author.name}
|
||||||
|
description={props.author.bio}
|
||||||
|
imageUrl={props.author.userpic}
|
||||||
|
shareUrl={getShareUrl({ pathname: `/author/${props.author.slug}` })}
|
||||||
|
trigger={<Button variant="secondary" value={t('Share')} />}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
|
|
||||||
<Show when={props.following}>
|
<Show when={props.following}>
|
||||||
<Modal variant="medium" name="following" onClose={handleCloseFollowModals} maxHeight>
|
<Modal variant="medium" name="following" onClose={handleCloseFollowModals} maxHeight>
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
&.big {
|
&.big {
|
||||||
aspect-ratio: 1/1;
|
aspect-ratio: 1/1;
|
||||||
margin: 0 auto;
|
margin: 0 auto 1rem;
|
||||||
max-width: 168px;
|
max-width: 168px;
|
||||||
height: auto;
|
height: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
.authorHeader {
|
.authorHeader {
|
||||||
border-bottom: 2px solid var(--default-color);
|
border-bottom: 2px solid var(--default-color);
|
||||||
margin-bottom: 2.4rem;
|
margin-bottom: 2.4rem;
|
||||||
|
margin-top: 1.8rem;
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
|
|
||||||
@include media-breakpoint-up(lg) {
|
@include media-breakpoint-up(lg) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user