Fix PopupLoadingView size

This commit is contained in:
Benoit Martins 2026-03-05 14:52:31 +01:00
parent 66f2ac6fdc
commit fd2730661d
3 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,6 @@ import Foundation
public enum AppGitInfo {
public static let branch = "master"
public static let commit = "6c5bf4306"
public static let commit = "66f2ac6fd"
public static let tag = "6.1.0-alpha"
}

View file

@ -1389,7 +1389,6 @@ struct ContentView: View {
if sharedMainViewModel.operationInProgress {
PopupLoadingView()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding(.bottom, UIDevice.current.userInterfaceIdiom == .pad && (orientation == .landscapeLeft || orientation == .landscapeRight || UIScreen.main.bounds.size.width > UIScreen.main.bounds.size.height) ? geometry.safeAreaInsets.bottom : 0)
.background(.black.opacity(0.65))
.zIndex(3)

View file

@ -21,6 +21,8 @@ import SwiftUI
struct PopupLoadingView: View {
@State private var orientation = UIDevice.current.orientation
var body: some View {
VStack {
ProgressView()
@ -42,6 +44,7 @@ struct PopupLoadingView: View {
.padding(.horizontal)
.shadow(color: Color.orangeMain500, radius: 0, x: 0, y: 2)
.frame(maxWidth: SharedMainViewModel.shared.maxWidth)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}