Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
bfda399fdd
commit
b6ba6264f7
@ -92,6 +92,13 @@ struct CompactHandView: View {
|
|||||||
GeometryReader { geometry in
|
GeometryReader { geometry in
|
||||||
let availableWidth = geometry.size.width
|
let availableWidth = geometry.size.width
|
||||||
|
|
||||||
|
if isLargeScreen {
|
||||||
|
// iPad: Simple centered layout - no scrolling needed
|
||||||
|
cardsContent
|
||||||
|
.padding(.horizontal, Design.Spacing.medium)
|
||||||
|
.frame(width: availableWidth, alignment: .center)
|
||||||
|
} else {
|
||||||
|
// iPhone: Use ScrollView for 3rd card
|
||||||
ScrollViewReader { proxy in
|
ScrollViewReader { proxy in
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
cardsContent
|
cardsContent
|
||||||
@ -123,6 +130,7 @@ struct CompactHandView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.frame(height: cardHeight)
|
.frame(height: cardHeight)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.padding(.vertical, isWinner ? Design.Spacing.small : 0)
|
.padding(.vertical, isWinner ? Design.Spacing.small : 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user