fix: reserve queue header clearance in native list content

This commit is contained in:
2026-10-18 21:40:16 +02:00
parent 82f88c8cab
commit e4504ea5c4
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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.")