콘텐츠 그리드 리스트

- 아이템 간격 32로 수정
This commit is contained in:
Yu Sung 2024-02-15 02:31:02 +09:00
parent a07e87b9c8
commit d16c56fef8
4 changed files with 6 additions and 8 deletions

View File

@ -89,7 +89,7 @@ struct ContentAllByThemeView: View {
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 16.7) {
LazyVGrid(columns: columns, spacing: 32) {
ForEach(0..<viewModel.contentList.count, id: \.self) { index in
ContentNewAllItemView(item: viewModel.contentList[index])
.onAppear {

View File

@ -35,11 +35,11 @@ struct ContentNewAllItemView: View {
Image("ic_card_can_gray")
Text("\(item.price)")
.font(.custom(Font.medium.rawValue, size: 8.3))
.font(.custom(Font.medium.rawValue, size: 8.5))
.foregroundColor(Color.white)
} else {
Text("무료")
.font(.custom(Font.medium.rawValue, size: 8.3))
.font(.custom(Font.medium.rawValue, size: 8.5))
.foregroundColor(Color.white)
}
}
@ -52,10 +52,8 @@ struct ContentNewAllItemView: View {
Spacer()
HStack(spacing: 2) {
Image("ic_card_time_small_gray")
Text(item.duration)
.font(.custom(Font.medium.rawValue, size: 8.3))
.font(.custom(Font.medium.rawValue, size: 8.5))
.foregroundColor(Color.white)
}
.padding(3)

View File

@ -59,7 +59,7 @@ struct ContentNewAllView: View {
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 16.7) {
LazyVGrid(columns: columns, spacing: 32) {
ForEach(0..<viewModel.newContentList.count, id: \.self) { index in
ContentNewAllItemView(item: viewModel.newContentList[index])
.onAppear {

View File

@ -91,7 +91,7 @@ struct ContentCurationView: View {
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 16.7) {
LazyVGrid(columns: columns, spacing: 32) {
ForEach(0..<viewModel.contentList.count, id: \.self) { index in
ContentNewAllItemView(item: viewModel.contentList[index])
.onAppear {