Skip to content

Commit

Permalink
[#639] [fix] 코멘트 textoverflow 이슈 (#648)
Browse files Browse the repository at this point in the history
* fix: 코멘트에 word-break all 속성 적용

* fix: 책 상세페이지 요약글에 word-break all 속성 적용
  • Loading branch information
gxxrxn authored Jul 9, 2024
1 parent df269d3 commit 0d95bd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/book/detail/BookInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const BookSummary = ({
summary: string;
bookUrl: string;
}) => (
<p>
<p className="break-all">
{summary}&nbsp;...&nbsp;
{bookUrl && (
<a target="_blank" href={bookUrl}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/comment/CommentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Date = ({ date }: { date: string }) => (
);

const CommentContent = ({ content }: { content: string }) => (
<p className="text-justify font-body1-regular">{content}</p>
<p className="break-all text-justify font-body1-regular">{content}</p>
);

const CommentActionMenu = ({
Expand Down

0 comments on commit 0d95bd1

Please sign in to comment.