mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
Layout fixes
This commit is contained in:
parent
8c8e03931f
commit
2682e52f5a
@ -18,11 +18,14 @@ struct ChaptersView: View {
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
}
|
||||
.listRowBackground(Color.clear)
|
||||
}
|
||||
#if os(macOS)
|
||||
.listStyle(.inset)
|
||||
#elseif os(iOS)
|
||||
.listStyle(.grouped)
|
||||
.backport
|
||||
.scrollContentBackground(false)
|
||||
#else
|
||||
.listStyle(.plain)
|
||||
#endif
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
@ -411,6 +411,8 @@ struct VideoPlayerView: View {
|
||||
player.backend.setNeedsDrawing(false)
|
||||
player.exitFullScreen()
|
||||
}
|
||||
|
||||
viewDragOffset = Self.hiddenOffset
|
||||
} else {
|
||||
withAnimation(.linear(duration: 0.2)) {
|
||||
viewDragOffset = 0
|
||||
|
Loading…
Reference in New Issue
Block a user