Skip to content

Commit db9e5aa

Browse files
authored
Bug fixes ipad (#16)
* fix a few ipad bugs and cleanup * fix a bunch of sidebar wierdness on ipad and cleanup * fix toolbar space after login, and button width
1 parent ec5f30e commit db9e5aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Django Files/Views/ContentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ struct ContentView: View {
8282
selectedServer: server,
8383
onLoginSuccess: {
8484
needsRefresh = true
85+
showSidebarButton = false
8586
}
8687
)
8788
.id(server.url)

Django Files/Views/LoginView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ struct LoginView: View {
175175
HStack {
176176
Text(isLoggingIn ? "Logging in..." : "Login")
177177
}
178-
.frame(maxWidth: .infinity)
178+
.frame(maxWidth: 300)
179179
.padding()
180180
.background(.gray)
181181
.foregroundColor(.white)
@@ -199,7 +199,7 @@ struct LoginView: View {
199199
HStack {
200200
Text("\(method.name.capitalized) Login")
201201
}
202-
.frame(maxWidth: .infinity)
202+
.frame(maxWidth: 300)
203203
.padding()
204204
.background(.indigo)
205205
.foregroundColor(.white)

0 commit comments

Comments
 (0)