Fix BottomSheet height in CallView

This commit is contained in:
Benoit Martins 2025-07-28 09:55:02 +02:00
parent 6626a0d1a1
commit fe1e68f197

View file

@ -458,13 +458,13 @@ struct CallView: View {
simpleCallView(geometry: geometry)
.frame(
width: geometry.size.width,
height: geometry.size.height + geometry.safeAreaInsets.top + geometry.safeAreaInsets.bottom
height: geometry.size.height + geometry.safeAreaInsets.bottom + (callViewModel.calls.count > 1 ? 40 : geometry.safeAreaInsets.top)
)
}
if !fullscreenVideo || (fullscreenVideo && telecomManager.isPausedByRemote) {
if telecomManager.callStarted {
let minHeight = (minBottomSheetHeight * geometry.size.height) + topBarHeight
let minHeight = (minBottomSheetHeight * geometry.size.height) + topBarHeight
let maxHeight = (maxBottomSheetHeight * geometry.size.height) + topBarHeight
BottomSheetView(
content: bottomSheetContent(geo: geometry),