Code style fixes
This commit is contained in:
parent
f0b2ef0ef9
commit
3bb0044f6e
|
@ -111,7 +111,7 @@ export const AuthorBadge = (props: Props) => {
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Match when={props.author.bio}>
|
<Match when={props.author.bio}>
|
||||||
<div class={clsx('text-truncate', styles.bio)} innerHTML={props.author.bio}/>
|
<div class={clsx('text-truncate', styles.bio)} innerHTML={props.author.bio} />
|
||||||
</Match>
|
</Match>
|
||||||
</Switch>
|
</Switch>
|
||||||
<Show when={props.author?.stat}>
|
<Show when={props.author?.stat}>
|
||||||
|
|
|
@ -107,7 +107,13 @@ export const HeaderAuth = (props: Props) => {
|
||||||
<div class={clsx('col-auto col-lg-7', styles.usernav)}>
|
<div class={clsx('col-auto col-lg-7', styles.usernav)}>
|
||||||
<div class={styles.userControl}>
|
<div class={styles.userControl}>
|
||||||
<Show when={isCreatePostButtonVisible() && isAuthenticated()}>
|
<Show when={isCreatePostButtonVisible() && isAuthenticated()}>
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose, styles.userControlItemCreate)}>
|
<div
|
||||||
|
class={clsx(
|
||||||
|
styles.userControlItem,
|
||||||
|
styles.userControlItemVerbose,
|
||||||
|
styles.userControlItemCreate,
|
||||||
|
)}
|
||||||
|
>
|
||||||
<a href={getPagePath(router, 'create')}>
|
<a href={getPagePath(router, 'create')}>
|
||||||
<span class={styles.textLabel}>{t('Create post')}</span>
|
<span class={styles.textLabel}>{t('Create post')}</span>
|
||||||
<Icon name="pencil-outline" class={styles.icon} />
|
<Icon name="pencil-outline" class={styles.icon} />
|
||||||
|
@ -215,7 +221,13 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={isCreatePostButtonVisible() && !isAuthenticated()}>
|
<Show when={isCreatePostButtonVisible() && !isAuthenticated()}>
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose, styles.userControlItemCreate)}>
|
<div
|
||||||
|
class={clsx(
|
||||||
|
styles.userControlItem,
|
||||||
|
styles.userControlItemVerbose,
|
||||||
|
styles.userControlItemCreate,
|
||||||
|
)}
|
||||||
|
>
|
||||||
<a href={getPagePath(router, 'create')}>
|
<a href={getPagePath(router, 'create')}>
|
||||||
<span class={styles.textLabel}>{t('Create post')}</span>
|
<span class={styles.textLabel}>{t('Create post')}</span>
|
||||||
<Icon name="pencil-outline" class={styles.icon} />
|
<Icon name="pencil-outline" class={styles.icon} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user