some fixes

This commit is contained in:
Maximilian Roider
2025-11-14 11:41:16 +01:00
parent f17e987ca2
commit b868d04f3b
3 changed files with 12 additions and 8 deletions

View File

@@ -9,17 +9,15 @@ import SwiftUI
struct GameSelection: View { struct GameSelection: View {
var body: some View { var body: some View {
NavigationSplitView { NavigationView {
List(games) { game in List(games) { game in
NavigationLink { NavigationLink(destination: GameView(game)) {
GameView(game) ZStack {
} label: { GameRow(game)
GameRow(game) }
} }
} }
.navigationTitle("Games") .navigationTitle("Games")
} detail: {
Text("Select a game")
} }
} }
} }

View File

@@ -20,5 +20,12 @@ struct GameView: View {
// Use this for < Xcode 26 // Use this for < Xcode 26
OldWebView(game.url) OldWebView(game.url)
.frame(
minWidth: 0,
maxWidth: .infinity,
minHeight: 0,
maxHeight: .infinity,
alignment: .topLeading
)
} }
} }

View File

@@ -19,7 +19,6 @@ struct GameRow: View {
HStack { HStack {
Text(game.name) Text(game.name)
Spacer() Spacer()
Image(systemName: "chevron.forward")
} }
} }
} }