Skip to content

Commit

Permalink
Merge pull request #836 from KEEPER31337/feature/게시글_조회_페이지_버그_픽스_#789
Browse files Browse the repository at this point in the history
Feature/게시글 조회 페이지 버그 픽스 #789
  • Loading branch information
publdaze authored Nov 2, 2023
2 parents ad88c25 + 037d55f commit 94a8460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pages/board/BoardView/Card/CommentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CommentCard = ({ commentInfo, replyComments }: CommentCardProps) => {
<Card className="!bg-mainBlack !bg-none">
<CommentCardHeader commentInfo={commentInfo} />
{(!commentInfo.isDeleted || replyComments.length > 0) && (
<CardContent className="mb-5 whitespace-pre sm:!px-16">
<CardContent className="mb-5 whitespace-pre-line break-all sm:!px-16">
{!commentInfo.isDeleted && <Typography marginBottom={5}>{commentInfo.content}</Typography>}
<div className="space-y-3">
{replyComments.map((replyComment) => (
Expand Down
8 changes: 3 additions & 5 deletions src/pages/board/BoardView/Section/PostSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ const PostSection = ({ postId, post, password }: PostSectionProps) => {
</Button>
{fileOpen && (
<div className="mb-10 mt-2 space-y-2 text-pointBlue">
{post.categoryName === '시험게시판' && (
<Typography variant="small" className="block text-subOrange">
*시험 게시판 파일 다운로드를 위해서는 댓글 작성이 필요합니다.
</Typography>
)}
<Typography variant="small" className="block text-subOrange">
*파일 다운로드를 위해서는 댓글 작성이 필요합니다.
</Typography>
{files && <FileViewer files={files} onRowClick={handleDownloadFileClick} />}
</div>
)}
Expand Down

0 comments on commit 94a8460

Please sign in to comment.