From 3cbbf8446b6d028775773f6841a6ba02e030a339 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 30 Jun 2022 09:51:44 +0200 Subject: [PATCH] Fix browser toolbar layout --- Shared/Views/BrowserPlayerControls.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Shared/Views/BrowserPlayerControls.swift b/Shared/Views/BrowserPlayerControls.swift index 67a9a27a..1983e3ac 100644 --- a/Shared/Views/BrowserPlayerControls.swift +++ b/Shared/Views/BrowserPlayerControls.swift @@ -41,6 +41,8 @@ struct BrowserPlayerControls: View { #if os(iOS) VStack(spacing: 0) { toolbar + .frame(height: 35) + .frame(maxWidth: .infinity) .borderTop(height: 0.4, color: Color("ControlsBorderColor")) .modifier(ControlBackgroundModifier()) ControlsBar(fullScreen: .constant(false)) @@ -53,11 +55,13 @@ struct BrowserPlayerControls: View { struct PlayerControlsView_Previews: PreviewProvider { static var previews: some View { - BrowserPlayerControls(context: .player) { + BrowserPlayerControls(context: .player, toolbar: { + Button("Button") {} + }) { BrowserPlayerControls { VStack { Spacer() - Text("Hello") + TextField("A", text: .constant("abc")) Spacer() } }