mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 22:32:01 +00:00
Pin search bar to right of macOS toolbar in list views
Match the global Search view by pinning the searchable field and trailing buttons to the right edge on macOS 26 via a flexible ToolbarSpacer at .primaryAction. Applied to History, Bookmarks, Manage Channels, Downloads, Instance Browse, and PeerTube Explore. In History, the clear-history item moves from .automatic to .primaryAction so it groups with the other trailing controls.
This commit is contained in:
@@ -38,6 +38,13 @@ struct DownloadsView: View {
|
||||
.navigationTitle(String(localized: "downloads.title"))
|
||||
.toolbarTitleDisplayMode(.inlineLarge)
|
||||
.toolbar {
|
||||
#if os(macOS)
|
||||
// Pin the trailing group (search field + toolbar buttons) to the right edge,
|
||||
// matching the global Search view.
|
||||
if #available(macOS 26, *) {
|
||||
ToolbarSpacer(.flexible, placement: .primaryAction)
|
||||
}
|
||||
#endif
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
if let settings = downloadSettings {
|
||||
sortAndGroupMenu(settings)
|
||||
|
||||
Reference in New Issue
Block a user