diff options
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsProviderView.swift')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsProviderView.swift | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Sora/Views/Settings/Section/SettingsProviderView.swift b/Sora/Views/Settings/Section/SettingsProviderView.swift index 79ea146..606fe64 100644 --- a/Sora/Views/Settings/Section/SettingsProviderView.swift +++ b/Sora/Views/Settings/Section/SettingsProviderView.swift @@ -23,9 +23,7 @@ struct SettingsProviderView: View { Button("Add Custom Provider") { showingCustomBooruSheet = true } - #if os(macOS) - .frame(maxWidth: .infinity, alignment: .trailing) - #endif + .trailingFrame() .sheet(isPresented: $showingCustomBooruSheet) { Form { TextField("Domain", text: $newDomain) @@ -73,9 +71,7 @@ struct SettingsProviderView: View { settings.customProviders.removeAll() } } - #if os(macOS) - .frame(maxWidth: .infinity, alignment: .trailing) - #endif + .trailingFrame() } .alert( "Invalid Domain", @@ -155,8 +151,6 @@ struct SettingsProviderView: View { settings.preferredBooru = .safebooru } .disabled(!settings.customProviders.contains { $0.id == provider.id }) - #if os(macOS) - .frame(maxWidth: .infinity, alignment: .trailing) - #endif + .trailingFrame() } } |