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:
Arkadiusz Fal
2026-06-28 08:01:46 +02:00
parent b72fd2d3f0
commit b230d56379
2 changed files with 13 additions and 0 deletions

View File

@@ -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)
}

View File

@@ -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)
}