Layout fixes

This commit is contained in:
Arkadiusz Fal
2022-08-09 19:28:16 +02:00
parent bcc1d5aeaa
commit f90fdb48c8
4 changed files with 12 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ struct PlayerControls: View {
buttonsBar
HStack {
if !player.currentVideo.isNil, player.playingFullScreen {
if !player.currentVideo.isNil, fullScreenLayout {
Button {
withAnimation(Self.animation) {
model.presentingDetailsOverlay = true

View File

@@ -138,22 +138,22 @@ struct TimelineView: View {
.zIndex(3)
}
Circle()
Rectangle()
.contentShape(Rectangle())
.foregroundColor(.clear)
.background(
.foregroundColor(Color.clear)
.overlay(
ZStack {
Circle()
.fill(dragging ? .white : .gray)
.frame(maxWidth: 8)
.frame(width: 13)
Circle()
.fill(dragging ? .gray : .white)
.frame(maxWidth: 6)
.frame(width: 11)
}
)
.offset(x: thumbOffset)
.frame(maxWidth: thumbAreaWidth, minHeight: thumbAreaWidth)
.frame(width: thumbAreaWidth, height: thumbAreaWidth)
#if !os(tvOS)
.gesture(