Skip to content

Commit

Permalink
#73 Fix: 대표 테이스팅 노트 기기 비율 따라 바꿔주기
Browse files Browse the repository at this point in the history
  • Loading branch information
dlguszoo committed Aug 19, 2024
1 parent d47e605 commit 413d746
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class CartListCollectionViewCell: UICollectionViewCell {
make.top.equalToSuperview().offset(13)
make.leading.equalTo(imageView.snp.trailing).offset(13)
if UIDevice.current.userInterfaceIdiom == .phone {
make.width.lessThanOrEqualTo(185)
make.width.lessThanOrEqualTo(180) //185
}
make.height.lessThanOrEqualTo(45)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class WineInfoViewController: UIViewController {
tastingNoteView.snp.makeConstraints { make in
make.top.equalTo(infoView.snp.bottom).offset(10.5)
make.leading.trailing.equalTo(infoView)
make.height.greaterThanOrEqualTo(414)
make.height.greaterThanOrEqualTo(400)
}

tastingNoteView.addSubview(represent)
Expand All @@ -325,10 +325,11 @@ class WineInfoViewController: UIViewController {

tastingNoteView.addSubview(pentagonChart)
pentagonChart.snp.makeConstraints{ make in
make.top.equalTo(represent.snp.bottom).offset(29)
make.top.equalTo(represent.snp.bottom).offset(20)
make.centerX.equalToSuperview()
make.width.equalTo(353)
make.height.equalTo(309)
make.leading.equalToSuperview().offset(10) // 추가: 좌우 여백을 설정할 수 있습니다
make.bottom.equalToSuperview().offset(-10)
make.width.equalTo(pentagonChart.snp.height).multipliedBy(353.0/309.0)
}

contentView.addSubview(explainEntireView)
Expand Down

0 comments on commit 413d746

Please sign in to comment.