mirror of
https://github.com/yattee/yattee.git
synced 2026-11-06 03:47:17 +00:00
Inset the mini player into the split view's detail column
The floating overlay ignored the safe area, so the subscriptions channel strip sat under it on the iPhone Duo inner screen and iPad.
This commit is contained in:
@@ -206,8 +206,9 @@ struct AdaptiveTabView: View {
|
||||
}
|
||||
|
||||
// The tab bar layout on iOS 26.1+ shows the mini player as the tab
|
||||
// bar's bottom accessory; the split-view sidebar layout has no tab bar.
|
||||
if usesSidebar || !Self.usesTabBottomAccessory {
|
||||
// bar's bottom accessory; the split-view sidebar layout insets it
|
||||
// into its detail column.
|
||||
if !usesSidebar && !Self.usesTabBottomAccessory {
|
||||
miniPlayerOverlay
|
||||
}
|
||||
|
||||
@@ -262,9 +263,8 @@ struct AdaptiveTabView: View {
|
||||
MiniPlayerView()
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
// The tab bar layout has a bottom tab bar (49pt) to clear; the sidebar
|
||||
// layout (sidebarAdaptable) keeps its tabs at the top, so only float above the edge.
|
||||
.padding(.bottom, usesSidebar ? 12 : 49 + 8)
|
||||
// Clear the bottom tab bar (49pt)
|
||||
.padding(.bottom, 49 + 8)
|
||||
// Use move-only transition (no opacity) to prevent thumbnail flash during collapse
|
||||
// The opacity transition caused video to appear faded during player sheet dismiss
|
||||
.transition(.move(edge: .bottom))
|
||||
|
||||
Reference in New Issue
Block a user