diff options
| author | Fuwn <[email protected]> | 2025-03-15 20:49:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-03-15 20:49:53 -0700 |
| commit | c2df5dd7ad1fc665717f352d2094d17f0ca26c1b (patch) | |
| tree | bfea18c3ac03308570b6e7b4a257348c0d84448e /Sora/Views/Settings/Section/SettingsProviderView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-c2df5dd7ad1fc665717f352d2094d17f0ca26c1b.tar.xz sora-testing-c2df5dd7ad1fc665717f352d2094d17f0ca26c1b.zip | |
feat: Development commit
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() } } |