Skip to content

Commit

Permalink
Fix comment overflow and ensure content fits within div
Browse files Browse the repository at this point in the history
  • Loading branch information
chakribontha committed Oct 8, 2024
1 parent 450fe02 commit 32e3fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Resource/CommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const Comment = ({
}: 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>
<p className="prose break-words text-justify">{comment}</p>
</div>
<div className="mt-3">
<span className="text-xs text-secondary-500">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Shifting/CommentsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const Comment = ({
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>
<p className="prose break-words text-justify">{comment}</p>
</div>
<div className="mt-3">
<span className="text-xs text-secondary-500">
Expand Down

0 comments on commit 32e3fa2

Please sign in to comment.