From 804d9469709836ce79b6dffe1c75375ab65aac72 Mon Sep 17 00:00:00 2001 From: hl-valdemar Date: Sun, 18 Oct 2026 19:09:45 +0200 Subject: [PATCH] fix: replace queue add label with header plus button --- README.md | 4 ++-- Sources/App/TerebiApp.swift | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e75e660..5a92c1e 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,9 @@ Active playback prevents idle system sleep. Local video also keeps the display a ### Local-file queue -Use the **Queue** icon immediately left of the compact-mode button in the playback controls, 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 **Queue** icon immediately left of the compact-mode button in the playback controls, or **View → Show Queue**, to show the editable sidebar. The **+** button beside the queue count opens **Add to Queue…**; it 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. 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. +The navigation 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. diff --git a/Sources/App/TerebiApp.swift b/Sources/App/TerebiApp.swift index cf591d3..227c8d7 100644 --- a/Sources/App/TerebiApp.swift +++ b/Sources/App/TerebiApp.swift @@ -2293,6 +2293,8 @@ private struct PlayerContent: View { } .font(.system(size: 13)) .accessibilityElement(children: .combine) + iconButton("plus", "Add to Queue…", action: model.addQueuePanel) + .disabled(!model.canOpen) Spacer(minLength: 4) titleControls } @@ -2305,7 +2307,6 @@ private struct PlayerContent: View { iconButton("forward.end.fill", "Next Queue Item") { model.advanceQueue(1) } .disabled(!model.canNextQueueItem) Spacer() - Button("Add to Queue…", action: model.addQueuePanel).disabled(!model.canOpen) } .padding(.horizontal, 12) .padding(.top, 8)