fix detail
This commit is contained in:
parent
6e28950c76
commit
73dee0f11d
@ -153,10 +153,13 @@ struct DetailView: View {
|
||||
VStack(alignment: .center) {
|
||||
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Text(detailModel.name)
|
||||
.font(.system(size: 28))
|
||||
.fontWeight(.bold)
|
||||
.foregroundColor(Color(hex: "#333333"))
|
||||
HStack {
|
||||
Text(detailModel.name)
|
||||
.font(.system(size: 28))
|
||||
.fontWeight(.bold)
|
||||
.foregroundColor(Color(hex: "#333333"))
|
||||
Spacer()
|
||||
}
|
||||
if showAllSummary {
|
||||
Text(detailModel.summary)
|
||||
.lineLimit(nil)
|
||||
@ -167,6 +170,7 @@ struct DetailView: View {
|
||||
self.showAllSummary = false
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
Text(detailModel.summary)
|
||||
.lineLimit(3)
|
||||
@ -273,7 +277,6 @@ struct DetailView: View {
|
||||
print(detailModel.summary)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension DetailView {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user