Skip to content

Commit

Permalink
Fix comment overflow and ensure content fits within div (#8722)
Browse files Browse the repository at this point in the history
  • Loading branch information
chakribontha authored Oct 22, 2024
1 parent 2b8470c commit c23b16c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Components/Resource/CommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export const Comment = ({
modified_date,
}: IComment) => (
<div className="mt-4 flex w-full flex-col rounded-lg border border-secondary-300 bg-white p-4 text-secondary-800">
<div className="flex w-full">
<p className="text-justify">{comment}</p>
<div className="w-full">
<p className="break-words">{comment}</p>
</div>
<div className="mt-3">
<span className="text-xs text-secondary-500">
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Shifting/CommentsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export const Comment = ({
key={id}
className="mt-4 flex w-full flex-col rounded-lg border border-secondary-300 bg-white p-4 text-secondary-800"
>
<div className="flex w-full">
<p className="text-justify">{comment}</p>
<div className="w-full">
<p className="break-words">{comment}</p>
</div>
<div className="mt-3">
<span className="text-xs text-secondary-500">
Expand Down

0 comments on commit c23b16c

Please sign in to comment.