Fix full-width Speed menu on macOS Sequoia

The borderlessButton menu stretches to fill the available width on
macOS 15, so pin it to its intrinsic size with .fixedSize().
This commit is contained in:
Arkadiusz Fal
2026-06-29 21:04:41 +02:00
parent f730542903
commit daf5fe1ad1

View File

@@ -860,7 +860,10 @@ private extension View {
#if os(tvOS)
self
#else
// On macOS Sequoia the borderlessButton menu stretches to fill the
// available width unless it is pinned to its intrinsic size.
self.menuStyle(.borderlessButton)
.fixedSize()
#endif
}
}