TDKCandidates // Optimize vertical display in single column mode.

This commit is contained in:
ShikiSuen 2022-10-22 11:11:18 +08:00
parent f94ecf5fda
commit 85efbeaf81
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ public struct VwrCandidateVertical: View {
).id(columnIndex) ).id(columnIndex)
if loopIndex < thePool.maxLinesPerPage - 1 { if loopIndex < thePool.maxLinesPerPage - 1 {
Divider() Divider()
} else { } else if thePool.maxLinesPerPage > 1 {
Spacer(minLength: 0) Spacer(minLength: 0)
} }
} }
@ -91,7 +91,7 @@ public struct VwrCandidateVertical: View {
) )
if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 { if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 {
Divider() Divider()
} else { } else if thePool.maxLinesPerPage > 1 {
Spacer(minLength: 0) Spacer(minLength: 0)
} }
} }

View File

@ -74,7 +74,7 @@ public struct VwrCandidateVerticalBackports: View {
).id(columnIndex) ).id(columnIndex)
if loopIndex < thePool.maxLinesPerPage - 1 { if loopIndex < thePool.maxLinesPerPage - 1 {
Divider() Divider()
} else { } else if thePool.maxLinesPerPage > 1 {
Spacer(minLength: 0) Spacer(minLength: 0)
} }
} }
@ -93,7 +93,7 @@ public struct VwrCandidateVerticalBackports: View {
) )
if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 { if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 {
Divider() Divider()
} else { } else if thePool.maxLinesPerPage > 1 {
Spacer(minLength: 0) Spacer(minLength: 0)
} }
} }