Warn for sources in included html

This commit is contained in:
Christoph Hagen
2024-12-14 19:23:12 +01:00
parent 657f8c4ef4
commit 8a3a0f1797
6 changed files with 46 additions and 13 deletions

View File

@ -32,5 +32,6 @@ struct IconButton: View {
.fill(background)
.padding(1))
}
.buttonStyle(.plain)
}
}

View File

@ -19,7 +19,7 @@ struct LocalizedPostDetailView: View {
.font(.headline)
OptionalTextField("", text: $item.linkPreviewTitle,
prompt: item.title)
.textFieldStyle(.roundedBorder)
.textFieldStyle(.roundedBorder)
.padding(.bottom)
HStack {
@ -29,7 +29,7 @@ struct LocalizedPostDetailView: View {
size: 22,
color: .blue) {
showImagePicker = true
}
}.padding(.bottom)
IconButton(symbol: .trashCircleFill,
size: 22,

View File

@ -86,6 +86,8 @@ struct PageIssueView: View {
private var buttons: [ButtonAction] {
switch issue.message {
case .warning:
return [.init(name: "Retry", action: retryPageCheck)]
case .failedToLoadContent:
return [.init(name: "Retry", action: retryPageCheck)]
case .missingFile(let missing, _):