Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MarlinDiary committed Jul 19, 2023
2 parents c1ab5f2 + df20ea1 commit 369ef92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Commentable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function Comment({

<div
className={clsxm(
'comment__message group relative inline-block rounded-xl px-2 py-1 text-sm text-zinc-800 dark:text-zinc-200',
'comment__message group relative inline-block break-all rounded-xl px-2 py-1 text-sm text-zinc-800 dark:text-zinc-200',
isMyself
? 'rounded-br-sm bg-sky-300/40 dark:bg-sky-600/80'
: 'rounded-bl-sm bg-zinc-600/5 dark:bg-zinc-500/20'
Expand Down Expand Up @@ -507,7 +507,7 @@ function CommentTextarea({ isLoading, onSubmit }: CommentTextareaProps) {
</AnimatePresence>
<div className="flex w-full items-end pb-1">
{isPreviewing ? (
<div className="comment__message flex-1 shrink-0 px-2 py-1 text-sm text-zinc-800 dark:text-zinc-200">
<div className="comment__message flex-1 shrink-0 break-all px-2 py-1 text-sm text-zinc-800 dark:text-zinc-200">
<CommentMarkdown>{comment}</CommentMarkdown>
</div>
) : (
Expand Down

0 comments on commit 369ef92

Please sign in to comment.