feat: geo rule size

This commit is contained in:
mrFq1
2023-09-13 11:01:31 +08:00
parent 65ac522658
commit 4aff8f8d1d
2 changed files with 15 additions and 5 deletions

View File

@@ -18,13 +18,21 @@ struct RuleItemView: View {
.frame(width: 30)
VStack(alignment: .leading) {
if let payload = rule.payload,
payload != "" {
Text(rule.payload!)
.font(.system(size: 14))
HStack(alignment: .bottom, spacing: 18) {
if let payload = rule.payload,
payload != "" {
Text(rule.payload!)
.font(.system(size: 14))
}
if rule.size > 0 {
Text("size: \(rule.size)")
.font(.system(size: 12))
.foregroundColor(.secondary)
}
}
HStack() {
HStack {
Text(rule.type)
.foregroundColor(.secondary)
.frame(width: 120, alignment: .leading)