update notification

This commit is contained in:
Ren Amamiya
2023-07-23 15:54:34 +07:00
parent f0fb1bee1e
commit 13ca8a2c54
10 changed files with 116 additions and 48 deletions

View File

@@ -56,8 +56,8 @@ export const MentionNote = memo(function MentionNote({ id }: { id: string }) {
},
}}
>
{data?.content?.parsed?.length > 200
? data.content.parsed.substring(0, 200) + '...'
{data?.content?.parsed?.length > 160
? data.content.parsed.substring(0, 160) + '...'
: data.content.parsed}
</ReactMarkdown>
</div>

View File

@@ -2,7 +2,7 @@ import ReactPlayer from 'react-player/es6';
export function VideoPreview({ urls }: { urls: string[] }) {
return (
<div className="relative mb-2 mt-3 flex w-full max-w-[420px] flex-col gap-2">
<div className="relative mb-2 mt-3 flex w-full flex-col gap-2">
{urls.map((url) => (
<ReactPlayer
key={url}