mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-09-03 08:33:46 +00:00
move instance suggestion label into Button label to enable full-row tap target
This commit is contained in:
parent
0423351f5d
commit
1dea54bae5
1 changed files with 14 additions and 12 deletions
|
@ -89,20 +89,22 @@ struct AddAccountView: View {
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
} else {
|
} else {
|
||||||
ForEach(instanceName.isEmpty ? instances : instances.filter{ $0.name.contains(instanceName.lowercased()) }) { instance in
|
ForEach(instanceName.isEmpty ? instances : instances.filter{ $0.name.contains(instanceName.lowercased()) }) { instance in
|
||||||
VStack(alignment: .leading, spacing: 4) {
|
Button {
|
||||||
Text(instance.name)
|
self.instanceName = instance.name
|
||||||
.font(.headline)
|
} label: {
|
||||||
Text(instance.info?.shortDescription ?? "")
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
.font(.body)
|
Text(instance.name)
|
||||||
.foregroundColor(.gray)
|
.font(.headline)
|
||||||
Text("\(instance.users) users ⸱ \(instance.statuses) posts")
|
.foregroundColor(.primary)
|
||||||
.font(.footnote)
|
Text(instance.info?.shortDescription ?? "")
|
||||||
.foregroundColor(.gray)
|
.font(.body)
|
||||||
|
.foregroundColor(.gray)
|
||||||
|
Text("\(instance.users) users ⸱ \(instance.statuses) posts")
|
||||||
|
.font(.footnote)
|
||||||
|
.foregroundColor(.gray)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
.onTapGesture {
|
|
||||||
self.instanceName = instance.name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue