From 7812fc6a8db4223a8326f766ceb1fdb57a63cbd9 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 15 Nov 2025 11:39:14 +0100 Subject: [PATCH] Add horizontal padding to player controls in non-fullscreen iPad windows When the iPad window is resized (not fullscreen), player controls now have 10px horizontal padding from the edges for better spacing and visual comfort. --- Shared/Player/Controls/PlayerControls.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Shared/Player/Controls/PlayerControls.swift b/Shared/Player/Controls/PlayerControls.swift index 0e355e96..c00df64c 100644 --- a/Shared/Player/Controls/PlayerControls.swift +++ b/Shared/Player/Controls/PlayerControls.swift @@ -110,6 +110,9 @@ struct PlayerControls: View { Spacer() } .offset(y: playerControlsLayout.osdVerticalOffset + 5) + #if os(iOS) + .padding(.horizontal, Constants.isIPad && !Constants.isWindowFullscreen ? 10 : 0) + #endif Section { #if !os(tvOS) @@ -121,6 +124,9 @@ struct PlayerControls: View { seekForwardButton } .font(.system(size: playerControlsLayout.bigButtonFontSize)) + #if os(iOS) + .padding(.horizontal, Constants.isIPad && !Constants.isWindowFullscreen ? 10 : 0) + #endif #endif ZStack(alignment: .bottom) { @@ -171,6 +177,9 @@ struct PlayerControls: View { } .zIndex(1) .padding(.top, 2) + #if os(iOS) + .padding(.horizontal, Constants.isIPad && !Constants.isWindowFullscreen ? 10 : 0) + #endif .transition(.opacity) HStack(spacing: playerControlsLayout.buttonsSpacing) { @@ -207,6 +216,9 @@ struct PlayerControls: View { .offset(y: -playerControlsLayout.timelineHeight - 30) #else .offset(y: -playerControlsLayout.timelineHeight - 5) + #if os(iOS) + .padding(.horizontal, Constants.isIPad && !Constants.isWindowFullscreen ? 10 : 0) + #endif #endif } }