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 {
var body: some View {
NavigationSplitView {
NavigationView {
List(games) { game in
NavigationLink {
GameView(game)
} label: {
NavigationLink(destination: GameView(game)) {
ZStack {
GameRow(game)
}
}
}
.navigationTitle("Games")
} detail: {
Text("Select a game")
}
}
}

View File

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

View File

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