fix: minimize queue row horizontal padding

This commit is contained in:
2026-10-18 19:57:48 +02:00
parent 2e690b1a3a
commit 015da6a33e
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ Use the **Queue** icon immediately left of the compact-mode button in the playba
The fixed bottom row holds the queue label/count and **+** on the left, with previous/next controls on the right. Its text and icons share a 15-point size. The **+** is a 20-point rounded-square button with an accent-tinted background and an 8-point gap after the queue count. The fixed bottom row holds the queue label/count and **+** on the left, with previous/next controls on the right. Its text and icons share a 15-point size. The **+** is a 20-point rounded-square button with an accent-tinted background and an 8-point gap after the queue count.
Queue rows show a medium-weight, two-line filename without its extension, with a smaller format label beneath it. Rows have a 56-point minimum height, 8-point internal padding and 8-point horizontal outer insets without the native sidebar style's extra margins; leading and remove icons are smaller and subdued. The current item has an accent play marker and a subtle rounded highlight. Full filenames and paths remain available in row tooltips. Queue rows show a medium-weight, two-line filename without its extension, with a smaller format label beneath it. Rows have a 56-point minimum height, 8-point vertical and 4-point horizontal internal padding, and no horizontal outer insets; leading and remove icons are smaller and subdued. The current item has an accent play marker and a subtle rounded highlight. Full filenames and paths remain available in row tooltips.
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.
+3 -2
View File
@@ -2320,7 +2320,8 @@ private struct PlayerContent: View {
.help("Remove from Queue") .help("Remove from Queue")
.accessibilityLabel("Remove \(item.url.lastPathComponent) from Queue") .accessibilityLabel("Remove \(item.url.lastPathComponent) from Queue")
} }
.padding(8) .padding(.vertical, 8)
.padding(.horizontal, 4)
.frame(minHeight: 56) .frame(minHeight: 56)
.background { .background {
if isCurrent { if isCurrent {
@@ -2344,7 +2345,7 @@ private struct PlayerContent: View {
} }
} }
.accessibilityAction(named: Text("Play")) { model.selectQueueItem(item.id) } .accessibilityAction(named: Text("Play")) { model.selectQueueItem(item.id) }
.listRowInsets(EdgeInsets(top: 2, leading: 8, bottom: 2, trailing: 8)) .listRowInsets(EdgeInsets(top: 2, leading: 0, bottom: 2, trailing: 0))
.listRowSeparator(.hidden) .listRowSeparator(.hidden)
} }
.onMove { model.moveQueueItems(fromOffsets: $0, toOffset: $1) } .onMove { model.moveQueueItems(fromOffsets: $0, toOffset: $1) }