diff --git a/src/components/Author/AuthorBadge/AuthorBadge.module.scss b/src/components/Author/AuthorBadge/AuthorBadge.module.scss index 281ec4d0..dc79e763 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.module.scss +++ b/src/components/Author/AuthorBadge/AuthorBadge.module.scss @@ -5,6 +5,13 @@ margin-bottom: 2rem; gap: 1rem; + &.nameOnly { + align-items: center; + .info { + margin-bottom: 0; + } + } + @include media-breakpoint-down(sm) { flex-wrap: wrap; margin-bottom: 3rem; diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index 26405ec5..851bacf9 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -17,6 +17,7 @@ type Props = { minimizeSubscribeButton?: boolean showMessageButton?: boolean iconButtons?: boolean + nameOnly?: boolean } export const AuthorBadge = (props: Props) => { const [isSubscribing, setIsSubscribing] = createSignal(false) @@ -63,7 +64,7 @@ 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 })} -
-
- + + + {t('Registered since {date}', { date: formatDate(new Date(props.author.createdAt)) })} +
+ } + > + +
+ + 0}> +
+ {t('PublicationsWithCount', { count: props.author.stat?.shouts ?? 0 })} +
+
+ + - +
{ condition={props.hasLink} wrapper={(children) => {children}} > - {letters()}
}> + {letters()}
}> {props.name} diff --git a/src/components/Editor/SimplifiedEditor.tsx b/src/components/Editor/SimplifiedEditor.tsx index 4ec2c340..534a28ad 100644 --- a/src/components/Editor/SimplifiedEditor.tsx +++ b/src/components/Editor/SimplifiedEditor.tsx @@ -1,4 +1,4 @@ -import { createEffect, createSignal, onCleanup, onMount, Show } from 'solid-js' +import { createEffect, createMemo, createSignal, onCleanup, onMount, Show } from 'solid-js' import { Portal } from 'solid-js/web' import { createEditorTransaction, @@ -53,6 +53,7 @@ type Props = { onlyBubbleControls?: boolean controlsAlwaysVisible?: boolean autoFocus?: boolean + isCancelButtonVisible: boolean } export const MAX_DESCRIPTION_LIMIT = 400 @@ -61,6 +62,7 @@ const SimplifiedEditor = (props: Props) => { const { t } = useLocalize() const [counter, setCounter] = createSignal() + const isCancelButtonVisible = createMemo(() => props.isCancelButtonVisible !== false) const wrapperEditorElRef: { current: HTMLElement } = { @@ -327,7 +329,9 @@ const SimplifiedEditor = (props: Props) => {
-