fix: match playlist outer and inner icon spacing

This commit is contained in:
2026-10-18 16:02:55 +02:00
parent b499b3f871
commit 6f58cd91e9
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ Active playback prevents idle system sleep. Local video also keeps the display a
Use the titlebar's **Queue** icon or **View → Show Queue** to show the editable sidebar. **Add to Queue…** and dropping files onto the sidebar append without replacing the queue or interrupting the current item. Drag rows to reorder, remove them with the minus button, and double-click a row to play it. The current item is marked; context menus also offer Play, Remove and Move Up/Down. Use the titlebar's **Queue** icon or **View → Show Queue** to show the editable sidebar. **Add to Queue…** and dropping files onto the sidebar append without replacing the queue or interrupting the current item. Drag rows to reorder, remove them with the minus button, and double-click a row to play it. The current item is marked; context menus also offer Play, Remove and Move Up/Down.
The navigation/Add row has extra space above it, and queue rows use equal-width leading and remove-icon slots for balanced side margins. The navigation/Add row has extra space above it. Queue rows use equal-width leading and remove-icon slots, with 8-point outer insets matching the gaps between icons and filenames and no additional horizontal scroll-content margin.
In a normal window, showing the queue expands the window outward while preserving the video's size; hiding it removes that extra width. The sidebar meets the video directly, without a separate divider gap. The window shifts left when necessary near the screen's right edge. Fullscreen keeps its fixed bounds. In a normal window, showing the queue expands the window outward while preserving the video's size; hiding it removes that extra width. The sidebar meets the video directly, without a separate divider gap. The window shifts left when necessary near the screen's right edge. Fullscreen keeps its fixed bounds.
+2
View File
@@ -2345,10 +2345,12 @@ private struct PlayerContent: View {
} }
} }
.accessibilityAction(named: Text("Play")) { model.selectQueueItem(item.id) } .accessibilityAction(named: Text("Play")) { model.selectQueueItem(item.id) }
.listRowInsets(EdgeInsets(top: 0, leading: 8, bottom: 0, trailing: 8))
} }
.onMove { model.moveQueueItems(fromOffsets: $0, toOffset: $1) } .onMove { model.moveQueueItems(fromOffsets: $0, toOffset: $1) }
} }
.listStyle(.sidebar) .listStyle(.sidebar)
.contentMargins(.horizontal, 0, for: .scrollContent)
.overlay { .overlay {
if model.queue.items.isEmpty { if model.queue.items.isEmpty {
Text("Drop local files here to add them to the queue.") Text("Drop local files here to add them to the queue.")