Tighten inline player layout
This commit is contained in:
1 parent
f4721a5a21
commit
0f26b58933
3 files changed
+3
-5
No files matched your search
@@ -62,6 +62,7 @@ struct MiniPlayerView: View {
|
||||
.truncationMode(.tail)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.layoutPriority(-1)
|
||||
|
||||
Button {
|
||||
displayedIsPlaying.toggle()
|
||||
@@ -84,6 +85,7 @@ struct MiniPlayerView: View {
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityLabel("Next track")
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
.frame(height: 32)
|
||||
.padding(.leading, usesCompactLayout ? 10 : 16)
|
||||
.padding(.trailing, usesCompactLayout ? 9 : 14)
|
||||
|
||||
@@ -20,11 +20,6 @@ struct PlayerBottomAccessoryView: View {
|
||||
)
|
||||
.padding(.horizontal, placement == .inline ? 4 : 0)
|
||||
.frame(maxWidth: placement == .inline ? 320 : .infinity)
|
||||
.glassEffect(
|
||||
player.currentTrack == nil ? .clear : .regular.tint(.black.opacity(0.18)),
|
||||
in: Capsule()
|
||||
)
|
||||
.shadow(color: .black.opacity(placement == .inline ? 0 : 0.08), radius: 8, y: 3)
|
||||
.offset(y: 1 / displayScale)
|
||||
.opacity(player.currentTrack == nil ? 0 : 1)
|
||||
.allowsHitTesting(player.currentTrack != nil)
|
||||
|
||||
Reference in new issue
Block a user