mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 22:02:10 +00:00
Fix oversized ellipsis menu buttons on macOS Sequoia
The default SwiftUI Menu style on macOS 15 renders as a bordered pull-down button that stretches to fill available width, while macOS 26 hugs the label. Apply .menuStyle(.borderlessButton) and .fixedSize() to the video context menu and playlist header menu.
This commit is contained in:
@@ -636,6 +636,12 @@ struct VideoContextMenuView: View {
|
||||
}
|
||||
.id(refreshID)
|
||||
.menuIndicator(.hidden)
|
||||
#if os(macOS)
|
||||
// The default macOS menu style renders as a bordered pull-down that
|
||||
// stretches to fill available width on macOS 15 (Sequoia).
|
||||
.menuStyle(.borderlessButton)
|
||||
.fixedSize()
|
||||
#endif
|
||||
.sheet(isPresented: $showingPlaylistSheet) {
|
||||
PlaylistSelectorSheet(video: video)
|
||||
}
|
||||
|
||||
@@ -456,6 +456,13 @@ struct UnifiedPlaylistDetailView: View {
|
||||
.frame(width: 44, height: 44)
|
||||
.background(.regularMaterial, in: Circle())
|
||||
}
|
||||
.menuIndicator(.hidden)
|
||||
#if os(macOS)
|
||||
// The default macOS menu style renders as a bordered pull-down that
|
||||
// stretches to fill available width on macOS 15 (Sequoia).
|
||||
.menuStyle(.borderlessButton)
|
||||
.fixedSize()
|
||||
#endif
|
||||
}
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user