Skip to content

Commit df3542f

Browse files
committed
Refactor: 추천 루틴 뷰 수정 (#T3-121)
- 감정 등록 버튼이 추천 루틴 목록들보다 상단에 뜨도록 UI 수정 - RecommendedRoutineCardView에서 Label trailing Layout 추가
1 parent fe5887a commit df3542f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Projects/Presentation/Sources/RecommendedRoutine/View/Component/RecommendedRoutineCardView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ final class RecommendedRoutineCardView: UIView {
8484

8585
labelStackView.snp.makeConstraints { make in
8686
make.leading.equalToSuperview().offset(Layout.horizontalMargin)
87+
make.trailing.equalTo(plusButton.snp.leading)
8788
make.centerY.equalToSuperview()
8889
}
8990

Projects/Presentation/Sources/RecommendedRoutine/View/RecommendedRoutineView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ final class RecommendedRoutineView: BaseViewController<RecommendedRoutineViewMod
145145
}
146146
recommendedRoutineCards.removeAll()
147147

148+
if recommendedRoutines.first?.routineCategory == .recommendation {
149+
showEmotionButton()
150+
}
151+
148152
for routine in recommendedRoutines {
149153
let routineCard = RecommendedRoutineCardView(recommendedRoutine: routine)
150154
recommendedRoutineCards[routine.id] = routineCard

0 commit comments

Comments
 (0)