mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 14:20:32 +05:30
Fix browser controls bar on macOS
This commit is contained in:
parent
46eee88527
commit
0f46bb179a
@ -38,13 +38,16 @@ struct BrowserPlayerControls<Content: View, Toolbar: View>: View {
|
|||||||
content
|
content
|
||||||
.frame(maxHeight: .infinity)
|
.frame(maxHeight: .infinity)
|
||||||
|
|
||||||
#if os(iOS)
|
#if !os(tvOS)
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
toolbar
|
#if os(iOS)
|
||||||
.frame(height: 35)
|
toolbar
|
||||||
.frame(maxWidth: .infinity)
|
.frame(height: 35)
|
||||||
.borderTop(height: 0.4, color: Color("ControlsBorderColor"))
|
.frame(maxWidth: .infinity)
|
||||||
.modifier(ControlBackgroundModifier())
|
.borderTop(height: 0.4, color: Color("ControlsBorderColor"))
|
||||||
|
.modifier(ControlBackgroundModifier())
|
||||||
|
#endif
|
||||||
|
|
||||||
ControlsBar(fullScreen: .constant(false))
|
ControlsBar(fullScreen: .constant(false))
|
||||||
.edgesIgnoringSafeArea(.bottom)
|
.edgesIgnoringSafeArea(.bottom)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user