fix: reserve queue header clearance in native list content
This commit is contained in:
@@ -2308,6 +2308,12 @@ private struct PlayerContent: View {
|
||||
private var queueSidebar: some View {
|
||||
VStack(spacing: 0) {
|
||||
List {
|
||||
Color.clear
|
||||
.frame(height: 52)
|
||||
.listRowInsets(EdgeInsets())
|
||||
.listRowSeparator(.hidden)
|
||||
.allowsHitTesting(false)
|
||||
.accessibilityHidden(true)
|
||||
ForEach(model.queue.items) { item in
|
||||
let isCurrent = item.id == model.queue.currentID
|
||||
HStack(spacing: 8) {
|
||||
@@ -2375,7 +2381,6 @@ private struct PlayerContent: View {
|
||||
.listStyle(.plain)
|
||||
.scrollContentBackground(.hidden)
|
||||
.contentMargins(.horizontal, 0, for: .scrollContent)
|
||||
.contentMargins(.top, 52, for: .scrollContent)
|
||||
.overlay {
|
||||
if model.queue.items.isEmpty {
|
||||
Text("Drop local files here to add them to the queue.")
|
||||
|
||||
Reference in New Issue
Block a user