TDKCandidates // Add a spacer to the right edge of the window.

This commit is contained in:
ShikiSuen 2022-10-16 22:10:17 +08:00
parent 3c52b2cc40
commit 98487ce974
4 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public struct VwrCandidateHorizontal: View {
.contentShape(Rectangle())
.onTapGesture { didSelectCandidateAt(currentCandidate.index) }
}
Spacer()
}.frame(
minWidth: 0,
maxWidth: .infinity,

View File

@ -71,6 +71,8 @@ public struct VwrCandidateVertical: View {
).id(columnIndex)
if loopIndex < thePool.maxLinesPerPage - 1 {
Divider()
} else {
Spacer(minLength: 0)
}
}
if thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count > 0 {
@ -88,6 +90,8 @@ public struct VwrCandidateVertical: View {
)
if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 {
Divider()
} else {
Spacer(minLength: 0)
}
}
}

View File

@ -66,6 +66,7 @@ public struct VwrCandidateHorizontalBackports: View {
.contentShape(Rectangle())
.onTapGesture { didSelectCandidateAt(currentCandidate.index) }
}
Spacer()
}.frame(
minWidth: 0,
maxWidth: .infinity,

View File

@ -73,6 +73,8 @@ public struct VwrCandidateVerticalBackports: View {
).id(columnIndex)
if loopIndex < thePool.maxLinesPerPage - 1 {
Divider()
} else {
Spacer(minLength: 0)
}
}
if thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count > 0 {
@ -90,6 +92,8 @@ public struct VwrCandidateVerticalBackports: View {
)
if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 {
Divider()
} else {
Spacer(minLength: 0)
}
}
}