From d79716bde0b96a17945b606e0c3b39d162a17323 Mon Sep 17 00:00:00 2001 From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:34:59 +0300 Subject: [PATCH 001/162] Message header - clickable avatar (#287) * Message header - clickable avatar * Hide cancel button in messenger --- .../AuthorBadge/AuthorBadge.module.scss | 7 +++ .../Author/AuthorBadge/AuthorBadge.tsx | 39 +++++++------- src/components/Author/Userpic/Userpic.tsx | 2 +- src/components/Editor/SimplifiedEditor.tsx | 8 ++- src/components/Inbox/DialogCard.tsx | 53 ++++++++++++------- src/components/Views/Inbox.tsx | 1 + src/components/_shared/Image/Image.tsx | 4 +- 7 files changed, 71 insertions(+), 43 deletions(-) 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.topic.body}