mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
Fix browser toolbar layout
This commit is contained in:
parent
f8fe2961ca
commit
485e1b060e
@ -41,6 +41,8 @@ struct BrowserPlayerControls<Content: View, Toolbar: View>: View {
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
toolbar
|
toolbar
|
||||||
|
.frame(height: 35)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
.borderTop(height: 0.4, color: Color("ControlsBorderColor"))
|
.borderTop(height: 0.4, color: Color("ControlsBorderColor"))
|
||||||
.modifier(ControlBackgroundModifier())
|
.modifier(ControlBackgroundModifier())
|
||||||
ControlsBar(fullScreen: .constant(false))
|
ControlsBar(fullScreen: .constant(false))
|
||||||
@ -53,11 +55,13 @@ struct BrowserPlayerControls<Content: View, Toolbar: View>: View {
|
|||||||
|
|
||||||
struct PlayerControlsView_Previews: PreviewProvider {
|
struct PlayerControlsView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
BrowserPlayerControls(context: .player) {
|
BrowserPlayerControls(context: .player, toolbar: {
|
||||||
|
Button("Button") {}
|
||||||
|
}) {
|
||||||
BrowserPlayerControls {
|
BrowserPlayerControls {
|
||||||
VStack {
|
VStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("Hello")
|
TextField("A", text: .constant("abc"))
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user