From de97d0552894a33f2b15dd232598c40335d941a4 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Thu, 10 Oct 2024 05:13:01 +0800 Subject: [PATCH] fix: avatar is not displayed completely --- src/app/content/components/DanmakuMessage.tsx | 2 +- src/app/content/components/MessageItem.tsx | 2 +- src/app/content/components/PromptItem.tsx | 4 +- src/app/content/views/Setup/index.tsx | 2 +- src/app/options/components/AvatarSelect.tsx | 2 +- src/app/options/components/ProfileForm.tsx | 42 ++++++++++++------- 6 files changed, 33 insertions(+), 21 deletions(-) diff --git a/src/app/content/components/DanmakuMessage.tsx b/src/app/content/components/DanmakuMessage.tsx index 29dd371..6b0a623 100644 --- a/src/app/content/components/DanmakuMessage.tsx +++ b/src/app/content/components/DanmakuMessage.tsx @@ -34,7 +34,7 @@ const DanmakuMessage: FC = ({ data, className, onMouseEnter, on )} > - + {data.username.at(0)}
{data.body}
diff --git a/src/app/content/components/MessageItem.tsx b/src/app/content/components/MessageItem.tsx index 30d665d..f9e8b4e 100644 --- a/src/app/content/components/MessageItem.tsx +++ b/src/app/content/components/MessageItem.tsx @@ -32,7 +32,7 @@ const MessageItem: FC = (props) => { className={cn('box-border grid grid-cols-[auto_1fr] gap-x-2 px-4 first:pt-4 last:pb-4', props.className)} > - + {props.data.username.at(0)}
diff --git a/src/app/content/components/PromptItem.tsx b/src/app/content/components/PromptItem.tsx index aaa1022..7ae1518 100644 --- a/src/app/content/components/PromptItem.tsx +++ b/src/app/content/components/PromptItem.tsx @@ -13,9 +13,9 @@ export interface PromptItemProps { const PromptItem: FC = ({ data, className }) => { return (
- + - + {data.username.at(0)} {data.body} diff --git a/src/app/content/views/Setup/index.tsx b/src/app/content/views/Setup/index.tsx index f8bafac..b6d01aa 100644 --- a/src/app/content/views/Setup/index.tsx +++ b/src/app/content/views/Setup/index.tsx @@ -104,7 +104,7 @@ const Setup: FC = () => {
- + diff --git a/src/app/options/components/AvatarSelect.tsx b/src/app/options/components/AvatarSelect.tsx index acb599d..3291e53 100644 --- a/src/app/options/components/AvatarSelect.tsx +++ b/src/app/options/components/AvatarSelect.tsx @@ -58,7 +58,7 @@ const AvatarSelect = React.forwardRef( className )} > - + diff --git a/src/app/options/components/ProfileForm.tsx b/src/app/options/components/ProfileForm.tsx index bbf5eeb..cf92a43 100644 --- a/src/app/options/components/ProfileForm.tsx +++ b/src/app/options/components/ProfileForm.tsx @@ -92,31 +92,43 @@ const ProfileForm = () => { return (
- + ( - + - - - +
+ + + + +
)} /> - +