Ferrite: Use InlineHeader in all sections
Makes section presentation uniform across all iOS versions since iOS 15 defaults are wonky. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
cb4d935008
commit
291aa0fe46
3 changed files with 8 additions and 8 deletions
|
|
@ -71,7 +71,7 @@ struct HistorySectionView: View {
|
|||
|
||||
var body: some View {
|
||||
if compareGroup(historyGroup) > 0 {
|
||||
Section(header: Text(formatter.string(from: historyGroup[0].date ?? Date()))) {
|
||||
Section(header: InlineHeader(formatter.string(from: historyGroup[0].date ?? Date()))) {
|
||||
ForEach(historyGroup, id: \.self) { history in
|
||||
ForEach(history.entryArray.filter { allEntries.contains($0) }, id: \.self) { entry in
|
||||
HistoryButtonView(entry: entry)
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ struct PluginListView<P: Plugin, PJ: PluginJson>: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.inlinedList(inset: Application.shared.osVersion.majorVersion > 14 ? 0 : -25)
|
||||
.inlinedList(inset: 0)
|
||||
.listStyle(.insetGrouped)
|
||||
.sheet(isPresented: $navModel.showSourceSettings) {
|
||||
if String(describing: P.self) == "Source" {
|
||||
|
|
|
|||
|
|
@ -78,17 +78,17 @@ struct SettingsView: View {
|
|||
}
|
||||
}
|
||||
|
||||
Section(header: Text("Behavior")) {
|
||||
Section(header: InlineHeader("Behavior")) {
|
||||
Toggle(isOn: $autocorrectSearch) {
|
||||
Text("Autocorrect search")
|
||||
}
|
||||
}
|
||||
|
||||
Section(header: Text("Plugin management")) {
|
||||
Section(header: InlineHeader("Plugin management")) {
|
||||
NavigationLink("Plugin lists", destination: SettingsPluginListView())
|
||||
}
|
||||
|
||||
Section(header: Text("Default actions")) {
|
||||
Section(header: InlineHeader("Default actions")) {
|
||||
if debridManager.enabledDebrids.count > 0 {
|
||||
NavigationLink(
|
||||
destination: DebridActionPickerView(),
|
||||
|
|
@ -138,20 +138,20 @@ struct SettingsView: View {
|
|||
)
|
||||
}
|
||||
|
||||
Section(header: Text("Backups")) {
|
||||
Section(header: InlineHeader("Backups")) {
|
||||
NavigationLink(destination: BackupsView()) {
|
||||
Text("Backups")
|
||||
}
|
||||
}
|
||||
|
||||
Section(header: Text("Updates")) {
|
||||
Section(header: InlineHeader("Updates")) {
|
||||
Toggle(isOn: $autoUpdateNotifs) {
|
||||
Text("Show update alerts")
|
||||
}
|
||||
NavigationLink("Version history", destination: SettingsAppVersionView())
|
||||
}
|
||||
|
||||
Section(header: Text("Information")) {
|
||||
Section(header: InlineHeader("Information")) {
|
||||
ListRowLinkView(text: "Donate", link: "https://ko-fi.com/kingbri")
|
||||
ListRowLinkView(text: "Report issues", link: "https://github.com/bdashore3/Ferrite/issues")
|
||||
NavigationLink("About", destination: AboutView())
|
||||
|
|
|
|||
Loading…
Reference in a new issue