From e8e243ee096a0fb22183170ef3c0005291b72870 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Fri, 11 Oct 2024 15:22:22 +0800 Subject: [PATCH 1/2] fix: danmuku message ellipsis --- src/app/content/components/DanmakuMessage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/content/components/DanmakuMessage.tsx b/src/app/content/components/DanmakuMessage.tsx index dde5bad..0d42b61 100644 --- a/src/app/content/components/DanmakuMessage.tsx +++ b/src/app/content/components/DanmakuMessage.tsx @@ -28,7 +28,7 @@ const DanmakuMessage: FC = ({ data, className, onClick, onMouse {data.username.at(0)} -
{data.body}
+
{data.body}
) } From d4e42c68caf8e2e080854f244328c1e519ed6338 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Fri, 11 Oct 2024 15:50:15 +0800 Subject: [PATCH 2/2] fix: online text overflow --- src/app/content/components/DanmakuMessage.tsx | 2 +- src/app/content/components/MessageItem.tsx | 4 +--- src/app/content/views/Header/index.tsx | 10 ++++------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/app/content/components/DanmakuMessage.tsx b/src/app/content/components/DanmakuMessage.tsx index 0d42b61..0eb6431 100644 --- a/src/app/content/components/DanmakuMessage.tsx +++ b/src/app/content/components/DanmakuMessage.tsx @@ -28,7 +28,7 @@ const DanmakuMessage: FC = ({ data, className, onClick, onMouse {data.username.at(0)} -
{data.body}
+
{data.body}
) } diff --git a/src/app/content/components/MessageItem.tsx b/src/app/content/components/MessageItem.tsx index f9e8b4e..3d3b2b0 100644 --- a/src/app/content/components/MessageItem.tsx +++ b/src/app/content/components/MessageItem.tsx @@ -37,9 +37,7 @@ const MessageItem: FC = (props) => {
-
- {props.data.username} -
+
{props.data.username}
diff --git a/src/app/content/views/Header/index.tsx b/src/app/content/views/Header/index.tsx index 9d0d71f..c9f84b2 100644 --- a/src/app/content/views/Header/index.tsx +++ b/src/app/content/views/Header/index.tsx @@ -24,7 +24,7 @@ const Header: FC = () => { -