mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-02-04 10:02:26 +08:00
misc: OverviewTopItemView style
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user