Skip to content

Commit

Permalink
fix: text overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 2, 2023
1 parent 8ec036d commit ff1183e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/widgets/comment/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,19 @@ export const Comment: Component<{
'relative mb-2 w-full min-w-0 justify-center',
)}
>
<span className="flex flex-grow items-center gap-2">
<span className="ml-2">{author}</span>
<span className="flex select-none items-center space-x-2">
<span className="inline-flex text-[10px] font-medium opacity-40">
<span className="flex flex-grow flex-wrap items-center gap-2">
<span className="ml-2 max-w-full flex-shrink-0 break-all">
{author}
</span>
<span className="flex min-w-0 flex-shrink select-none flex-wrap items-center space-x-2 self-end">
<span className="inline-flex flex-shrink-0 text-[10px] font-medium opacity-40">
<RelativeTime date={comment.created} />
</span>
<span className="text-[10px] opacity-30">{key}</span>
<span className="break-all text-[10px] opacity-30">
{key}
</span>
{!!location && (
<span className="text-[10px] opacity-[0.35]">
<span className="min-w-0 max-w-full flex-shrink-0 break-all text-[10px] opacity-[0.35]">
来自:{location}
</span>
)}
Expand Down

1 comment on commit ff1183e

@vercel
Copy link

@vercel vercel bot commented on ff1183e Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-innei.vercel.app
shiro-git-main-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.