Skip to content

Commit

Permalink
[HOTFIX] fix curation subtitle linelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
JIWON1923 committed Dec 3, 2022
1 parent 6d39a7f commit b298e9e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ struct CurationListView: View {
navigationParentView: self.data.navigationParentView)
NavigationLink(value: data) {
UserCurationCell(curation: curation,
navigationParentView: self.data.navigationParentView)
navigationParentView: self.data.navigationParentView,
lineLimit: 2)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct UserCurationCell: View {

@State var curation: Curation
let navigationParentView: NavigationParentView
var lineLimit: Int?

var body: some View {
ZStack {
Expand Down Expand Up @@ -67,7 +68,7 @@ struct UserCurationCell: View {
Text(curation.subtitle)
.Body2()
.multilineTextAlignment(.leading)
.lineLimit(10)
.lineLimit(lineLimit)
.foregroundColor(Color.Gray5)
.padding(.bottom, 20)
.fixedSize(horizontal: false, vertical: true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ struct UserCurationListView: View {
if index < 2 {
NavigationLink(value: data) {
UserCurationCell(curation: curation,
navigationParentView: self.data.navigationParentView)
navigationParentView: self.data.navigationParentView,
lineLimit: 2)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ struct ListCurationView: View {

NavigationLink(value: data) {
UserCurationCell(curation: curation,
navigationParentView: self.data.navigationParentView)
navigationParentView: self.data.navigationParentView,
lineLimit: 2)
.listRowInsets(EdgeInsets())
.listRowSeparator(.hidden)
.listRowBackground(Color.Background)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ struct ReadUserCurationView: View {

UserCurationCell(curation: data.userCuration,
navigationParentView: data.navigationParentView)
.padding(.bottom, 12)
}
}
.background(Color.white)
.padding(.bottom, 12)

VStack(spacing: 0){
ForEach(self.data.userCuration.shortcuts, id: \.self) { shortcut in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ extension ShowProfileView {
navigationParentView: .shortcuts)
NavigationLink(value: data) {
UserCurationCell(curation: curation,
navigationParentView: data.navigationParentView)
navigationParentView: data.navigationParentView,
lineLimit: 2)
}
}

Expand Down

0 comments on commit b298e9e

Please sign in to comment.