콘텐츠 그리드 리스트

- 아이템 상하 간격 16으로 변경
This commit is contained in:
Yu Sung 2024-02-15 01:10:11 +09:00
parent a5eaf7c6ac
commit a07e87b9c8
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -93,7 +93,7 @@ struct ContentNewAllItemView: View {
}
.frame(width: width)
.onAppear {
width = (screenSize().width - 54) / 3
width = (screenSize().width - 42) / 3
}
}
}

View File

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