Skip to content

Commit

Permalink
[CHORE] 레이아웃 수정 (Team-LionHeart#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalswo2 committed Jul 21, 2023
1 parent 237c5a2 commit 21dfaef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private extension BodyTableViewCell {
guard let model else { return }
if let caption = model.caption {
captionLabel.text = caption
captionLabel.setTextWithLineHeight(lineHeight: 22)
captionLabel.snp.makeConstraints { make in
make.top.equalTo(bodyLabel.snp.bottom).offset(8)
make.leading.trailing.equalTo(bodyLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ extension ArticleDetailViewController {
do {
let bookmarkRequest = BookmarkRequest(articleId: articleId, bookmarkStatus: isSelected)
try await BookmarkService.shared.postBookmark(bookmarkRequest)
LHToast.show(message: "북마크가 추가되었습니다")
isBookMarked = isSelected
} catch {
guard let error = error as? NetworkError else { return }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ final class CurriculumArticleByWeekTableViewCell: UITableViewCell, TableViewCell
}
articleTagLabel.text = inputData.articleTags.joined(separator: " · ")
articleContentLabel.text = inputData.articleContent
articleContentLabel.setTextWithLineHeight(lineHeight: 22)
articleContentLabel.lineBreakStrategy = .pushOut
articleContentLabel.lineBreakMode = .byTruncatingTail
bookMarkButton.isSelected = inputData.isArticleBookmarked
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ final class CurriculumTableViewCell: UITableViewCell, TableViewCellRegisterDeque
self.weekTitleLabel.text = inputData.curriculumWeekTitle
self.contentImageView.image = inputData.curriculumImage
self.contentTextLabel.text = inputData.curriculumText
self.contentTextLabel.setTextWithLineHeight(lineHeight: 22)
self.curriculumContentStackView.isHidden = !inputData.isExpanded // false -> true -> 안보이게됨
self.weekLabel.textColor = inputData.isExpanded
? .designSystem(.componentLionRed)
Expand Down

0 comments on commit 21dfaef

Please sign in to comment.