fix detail

This commit is contained in:
anlicheng 2025-02-25 15:00:48 +08:00
parent 6e28950c76
commit 73dee0f11d

View File

@ -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 {