Fix route button, improve file details

This commit is contained in:
Christoph Hagen 2025-05-11 15:51:36 +02:00
parent afa2e0b844
commit ee2993318f
2 changed files with 3 additions and 3 deletions

View File

@ -51,14 +51,14 @@ struct FileDetailView: View {
text: "A file that can be used in a post or page")
GenericPropertyView(title: "Actions") {
ColoredButton(icon: .folder, text: "Show in folder", action: showFileInFinder)
ColoredButton(icon: .arrowClockwise, text: "Mark file as changed", action: markFileAsChanged)
if file.isExternallyStored {
ColoredButton(
icon: .squareAndArrowDown,
text: "Convert to internal file",
action: replaceFile)
} else {
ColoredButton(icon: .folder, text: "Show in folder", action: showFileInFinder)
ColoredButton(icon: .arrowClockwise, text: "Mark file as changed", action: markFileAsChanged)
ColoredButton(
icon: .arrowLeftArrowRight,
text: "Replace file",

View File

@ -57,7 +57,7 @@ struct InsertableRoute: View, InsertableCommandView {
if let mapTitle {
result.append("\(RouteBlock.Key.mapTitle.rawValue): \(mapTitle)")
}
result.append("\n```")
result.append("```")
return result.joined(separator: "\n")
}
}