Merge pull request #789 from omnivore-app/fix/web-prefs-modal-nav-style

Web prefs modal nav style
This commit is contained in:
Satindar Dhillon 2022-06-13 14:21:28 -07:00 committed by GitHub
commit 272ff78534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -251,7 +251,7 @@ public extension DataService {
}
}
if item.isPDF && needsPDFDownload {
if item.isPDF, needsPDFDownload {
try await fetchPDFData(slug: item.slug, pageURLString: item.pageURLString)
}

View file

@ -147,11 +147,12 @@ public struct WebPreferencesPopoverView: View {
ToolbarItem(placement: .navigationBarTrailing) {
Button(
action: dismissAction,
label: { Text("Done").foregroundColor(.appGrayTextContrast) }
label: { Text("Done").foregroundColor(.appGrayTextContrast).padding() }
)
}
}
}
.navigationViewStyle(.stack)
.accentColor(.appGrayTextContrast)
}
}