mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 22:02:10 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user