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