mirror of
https://github.com/yattee/yattee.git
synced 2025-11-15 22:48:43 +00:00
Fix button styling and safe area handling on iOS
Added plain button style for rate increase/decrease buttons on iOS. Fixed safe area insets in VerticalCells to respect sidebar navigation style on iOS.
This commit is contained in:
@@ -262,6 +262,8 @@ struct PlaybackSettings: View {
|
||||
.controlSize(.large)
|
||||
.frame(minWidth: 32, minHeight: 28)
|
||||
.fixedSize()
|
||||
#elseif os(iOS)
|
||||
.buttonStyle(.plain)
|
||||
#else
|
||||
.buttonStyle(.bordered)
|
||||
.controlSize(.large)
|
||||
@@ -297,6 +299,8 @@ struct PlaybackSettings: View {
|
||||
.controlSize(.large)
|
||||
.frame(minWidth: 32, minHeight: 28)
|
||||
.fixedSize()
|
||||
#elseif os(iOS)
|
||||
.buttonStyle(.plain)
|
||||
#else
|
||||
.buttonStyle(.bordered)
|
||||
.controlSize(.large)
|
||||
|
||||
@@ -8,6 +8,7 @@ struct VerticalCells<Header: View>: View {
|
||||
|
||||
@Environment(\.loadMoreContentHandler) private var loadMoreContentHandler
|
||||
@Environment(\.listingStyle) private var listingStyle
|
||||
@Environment(\.navigationStyle) private var navigationStyle
|
||||
|
||||
var items = [ContentItem]()
|
||||
var allowEmpty = false
|
||||
@@ -50,7 +51,7 @@ struct VerticalCells<Header: View>: View {
|
||||
}
|
||||
.animation(nil)
|
||||
#if os(iOS)
|
||||
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
|
||||
.edgesIgnoringSafeArea(navigationStyle == .sidebar ? [] : edgesIgnoringSafeArea)
|
||||
#endif
|
||||
#if os(macOS)
|
||||
.background(Color.secondaryBackground)
|
||||
|
||||
Reference in New Issue
Block a user