From 015da6a33e60b8524116d4836d803128db13dfa1 Mon Sep 17 00:00:00 2001 From: hl-valdemar Date: Sun, 18 Oct 2026 19:57:48 +0200 Subject: [PATCH] fix: minimize queue row horizontal padding --- README.md | 2 +- Sources/App/TerebiApp.swift | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2529e29..84bf9e9 100644 --- a/README.md +++ b/README.md @@ -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. -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. diff --git a/Sources/App/TerebiApp.swift b/Sources/App/TerebiApp.swift index e82f940..2820c9e 100644 --- a/Sources/App/TerebiApp.swift +++ b/Sources/App/TerebiApp.swift @@ -2320,7 +2320,8 @@ private struct PlayerContent: View { .help("Remove from Queue") .accessibilityLabel("Remove \(item.url.lastPathComponent) from Queue") } - .padding(8) + .padding(.vertical, 8) + .padding(.horizontal, 4) .frame(minHeight: 56) .background { if isCurrent { @@ -2344,7 +2345,7 @@ private struct PlayerContent: View { } } .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) } .onMove { model.moveQueueItems(fromOffsets: $0, toOffset: $1) }