시리즈 전체보기

- 아이템 크기 수정
This commit is contained in:
Yu Sung 2024-04-30 18:37:29 +09:00
parent 70dae4f646
commit feaeb275e4
2 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,7 @@ final class SeriesListAllViewModel: ObservableObject {
func getSeriesList() { func getSeriesList() {
if !isLoading && !isLast { if !isLoading && !isLast {
isLoading = true
repository repository
.getSeriesList(creatorId: creatorId, sortType: .NEWEST, page: page, size: pageSize) .getSeriesList(creatorId: creatorId, sortType: .NEWEST, page: page, size: pageSize)
.sink { result in .sink { result in

View File

@ -19,7 +19,6 @@ struct SeriesListItemView: View {
KFImage(URL(string: item.coverImage)) KFImage(URL(string: item.coverImage))
.resizable() .resizable()
.scaledToFill() .scaledToFill()
.frame(width: 102, height: 144, alignment: .center)
.cornerRadius(5) .cornerRadius(5)
.clipped() .clipped()
@ -56,18 +55,18 @@ struct SeriesListItemView: View {
} }
.padding(3.3) .padding(3.3)
} }
.frame(width: 102, height: 144, alignment: .center)
Text(item.title) Text(item.title)
.font(.custom(Font.medium.rawValue, size: 12)) .font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.grayee) .foregroundColor(Color.grayee)
.lineLimit(2) .lineLimit(2)
.frame(width: (screenSize().width - 60) / 3, alignment: .leading)
Text(item.publishedDaysOfWeek) Text(item.publishedDaysOfWeek)
.font(.custom(Font.medium.rawValue, size: 11)) .font(.custom(Font.medium.rawValue, size: 11))
.foregroundColor(Color.gray77) .foregroundColor(Color.gray77)
} }
.frame(width: 102) .frame(width: (screenSize().width - 60) / 3)
} }
} }