TDKCandidates // Layout tweaks for SwiftUI.

This commit is contained in:
ShikiSuen 2023-06-04 20:46:16 +08:00
parent bea40d7e75
commit b77a8f6295
1 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ public struct VwrCandidateTDK: View {
case .horizontal: case .horizontal:
ZStack { ZStack {
candidateListBackground candidateListBackground
HStack { HStack(spacing: 0) {
mainViewHorizontal mainViewHorizontal
if thePool.maxLinesPerPage == 1 { if thePool.maxLinesPerPage == 1 {
rightPanes rightPanes
@ -244,7 +244,7 @@ extension VwrCandidateTDK {
Text(tooltip.first?.description ?? "").padding(2).font(.system(size: CandidateCellData.unifiedSize)) Text(tooltip.first?.description ?? "").padding(2).font(.system(size: CandidateCellData.unifiedSize))
}.frame(width: ceil(CandidateCellData.unifiedSize * 1.7), height: ceil(CandidateCellData.unifiedSize * 1.7)) }.frame(width: ceil(CandidateCellData.unifiedSize * 1.7), height: ceil(CandidateCellData.unifiedSize * 1.7))
} }
VStack(alignment: .center, spacing: 1) { HStack(alignment: .center, spacing: 0) {
positionLabelView positionLabelView
if controller?.delegate?.showReverseLookupResult ?? true { if controller?.delegate?.showReverseLookupResult ?? true {
if !firstReverseLookupResult.isEmpty { if !firstReverseLookupResult.isEmpty {
@ -258,7 +258,7 @@ extension VwrCandidateTDK {
isBold: false isBold: false
) )
) )
.opacity(0.8).padding([.horizontal], 4) .opacity(0.8).padding([.leading], 9)
}.fixedSize() }.fixedSize()
} }
} }