diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK/VwrCandidateVertical.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK/VwrCandidateVertical.swift index 8d3d53de..bc69d663 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK/VwrCandidateVertical.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK/VwrCandidateVertical.swift @@ -72,7 +72,7 @@ public struct VwrCandidateVertical: View { ).id(columnIndex) if loopIndex < thePool.maxLinesPerPage - 1 { Divider() - } else { + } else if thePool.maxLinesPerPage > 1 { Spacer(minLength: 0) } } @@ -91,7 +91,7 @@ public struct VwrCandidateVertical: View { ) if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 { Divider() - } else { + } else if thePool.maxLinesPerPage > 1 { Spacer(minLength: 0) } } diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Backports/VwrCandidateVerticalBackports.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Backports/VwrCandidateVerticalBackports.swift index 33962870..88b1c1c4 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Backports/VwrCandidateVerticalBackports.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Backports/VwrCandidateVerticalBackports.swift @@ -74,7 +74,7 @@ public struct VwrCandidateVerticalBackports: View { ).id(columnIndex) if loopIndex < thePool.maxLinesPerPage - 1 { Divider() - } else { + } else if thePool.maxLinesPerPage > 1 { Spacer(minLength: 0) } } @@ -93,7 +93,7 @@ public struct VwrCandidateVerticalBackports: View { ) if loopIndex < thePool.maxLinesPerPage - thePool.rangeForCurrentPage.count - 1 { Divider() - } else { + } else if thePool.maxLinesPerPage > 1 { Spacer(minLength: 0) } }