misc: OverviewTopItemView style

This commit is contained in:
mrFq1
2023-05-11 10:36:02 +08:00
parent d78ce96dac
commit ceab3449e0

View File

@@ -12,21 +12,20 @@ struct OverviewTopItemView: View {
@Binding var value: String @Binding var value: String
var body: some View { var body: some View {
VStack(alignment: .leading) { VStack(alignment: .leading, spacing: 8) {
HStack { HStack {
Text(name) Text(name)
.font(.subheadline) .font(.subheadline)
.foregroundColor(.secondary) .foregroundColor(.secondary)
Spacer() Spacer()
} }
Spacer()
Text(value) Text(value)
.font(.system(size: 16)) .font(.system(size: 16))
} }
.frame(width: 130, height: 45) .frame(width: 125)
.padding(EdgeInsets(top: 12, leading: 14, bottom: 12, trailing: 14)) .padding(EdgeInsets(top: 10, leading: 13, bottom: 10, trailing: 13))
.background(.white) .background(.white)
.cornerRadius(12) .cornerRadius(10)
} }
} }