fix: 메인 홈 - 보온 주간 차트
- 아이템 사이즈 수정
This commit is contained in:
@@ -37,7 +37,7 @@ struct HomeWeeklyChartItemView: View {
|
|||||||
.foregroundColor(Color(hex: "78909C"))
|
.foregroundColor(Color(hex: "78909C"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(width: 242, alignment: .leading)
|
.frame(width: 180, alignment: .leading)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture { onClickItem(content.contentId) }
|
.onTapGesture { onClickItem(content.contentId) }
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ struct HomeWeeklyChartItemView: View {
|
|||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
HomeWeeklyChartItemView(
|
HomeWeeklyChartItemView(
|
||||||
rank: 1,
|
rank: 10,
|
||||||
content: GetAudioContentRankingItem(
|
content: GetAudioContentRankingItem(
|
||||||
contentId: 1,
|
contentId: 1,
|
||||||
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ struct HomeWeeklyChartView: View {
|
|||||||
.padding(.horizontal, 24)
|
.padding(.horizontal, 24)
|
||||||
|
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
LazyHGrid(rows: rows, spacing: 13.3) {
|
LazyHGrid(rows: rows, spacing: 16) {
|
||||||
ForEach(0..<contentList.count, id: \.self) { index in
|
ForEach(0..<contentList.count, id: \.self) { index in
|
||||||
HomeWeeklyChartItemView(
|
HomeWeeklyChartItemView(
|
||||||
rank: index + 1,
|
rank: index + 1,
|
||||||
@@ -49,6 +49,7 @@ struct HomeWeeklyChartView: View {
|
|||||||
.setAppStep(step: .login)
|
.setAppStep(step: .login)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.frame(width: 282, alignment: .leading)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 24)
|
.padding(.horizontal, 24)
|
||||||
@@ -132,6 +133,66 @@ struct HomeWeeklyChartView: View {
|
|||||||
isPointAvailable: true,
|
isPointAvailable: true,
|
||||||
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||||
),
|
),
|
||||||
|
GetAudioContentRankingItem(
|
||||||
|
contentId: 3,
|
||||||
|
title: "안녕하세요",
|
||||||
|
coverImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
|
themeStr: "커버곡",
|
||||||
|
price: 50,
|
||||||
|
duration: "00:30:20",
|
||||||
|
creatorId: 3,
|
||||||
|
creatorNickname: "유저3",
|
||||||
|
isPointAvailable: true,
|
||||||
|
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||||
|
),
|
||||||
|
GetAudioContentRankingItem(
|
||||||
|
contentId: 3,
|
||||||
|
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
||||||
|
coverImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
|
themeStr: "커버곡",
|
||||||
|
price: 50,
|
||||||
|
duration: "00:30:20",
|
||||||
|
creatorId: 3,
|
||||||
|
creatorNickname: "유저3",
|
||||||
|
isPointAvailable: true,
|
||||||
|
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||||
|
),
|
||||||
|
GetAudioContentRankingItem(
|
||||||
|
contentId: 3,
|
||||||
|
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
||||||
|
coverImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
|
themeStr: "커버곡",
|
||||||
|
price: 50,
|
||||||
|
duration: "00:30:20",
|
||||||
|
creatorId: 3,
|
||||||
|
creatorNickname: "유저3",
|
||||||
|
isPointAvailable: true,
|
||||||
|
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||||
|
),
|
||||||
|
GetAudioContentRankingItem(
|
||||||
|
contentId: 3,
|
||||||
|
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
||||||
|
coverImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
|
themeStr: "커버곡",
|
||||||
|
price: 50,
|
||||||
|
duration: "00:30:20",
|
||||||
|
creatorId: 3,
|
||||||
|
creatorNickname: "유저3",
|
||||||
|
isPointAvailable: true,
|
||||||
|
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||||
|
),
|
||||||
|
GetAudioContentRankingItem(
|
||||||
|
contentId: 3,
|
||||||
|
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
||||||
|
coverImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
|
themeStr: "커버곡",
|
||||||
|
price: 50,
|
||||||
|
duration: "00:30:20",
|
||||||
|
creatorId: 3,
|
||||||
|
creatorNickname: "유저3",
|
||||||
|
isPointAvailable: true,
|
||||||
|
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||||
|
),
|
||||||
GetAudioContentRankingItem(
|
GetAudioContentRankingItem(
|
||||||
contentId: 3,
|
contentId: 3,
|
||||||
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
title: "안녕하세요 오늘은 커버곡을 들려드릴께요....안녕하세요 오늘은 커버곡을 들려드릴께요....",
|
||||||
|
|||||||
Reference in New Issue
Block a user