Merge pull request #11 from samrshi/ss/instance-suggestion-tap-target
Make instance suggestion tap targets full-width
This commit is contained in:
commit
f8a4c47b2d
|
@ -89,9 +89,13 @@ struct AddAccountView: View {
|
|||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
} else {
|
||||
ForEach(instanceName.isEmpty ? instances : instances.filter{ $0.name.contains(instanceName.lowercased()) }) { instance in
|
||||
Button {
|
||||
self.instanceName = instance.name
|
||||
} label: {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Text(instance.name)
|
||||
.font(.headline)
|
||||
.foregroundColor(.primary)
|
||||
Text(instance.info?.shortDescription ?? "")
|
||||
.font(.body)
|
||||
.foregroundColor(.gray)
|
||||
|
@ -99,10 +103,8 @@ struct AddAccountView: View {
|
|||
.font(.footnote)
|
||||
.foregroundColor(.gray)
|
||||
}
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
.onTapGesture {
|
||||
self.instanceName = instance.name
|
||||
}
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue