Merge pull request #66 from zcash/design-guide

fix: EnumeratedChip Height fix
This commit is contained in:
Francisco Gindre 2021-10-21 19:50:43 -03:00 committed by GitHub
commit 1bb2167d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -88,8 +88,13 @@ struct EnumeratedChip_Previews: PreviewProvider {
spacing: 15
) {
ForEach(Array(zip(words.indices, words)), id: \.1) { i, word in
EnumeratedChip(index: (i + 1),text: word)
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 50)
EnumeratedChip(index: (i + 1), text: word)
.frame(
minWidth: 0,
maxWidth: .infinity,
minHeight: 30,
idealHeight: 40
)
}
}
.padding()