From ee2993318ffa65349997a5d6d94c5bd80417cadf Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 11 May 2025 15:51:36 +0200 Subject: [PATCH] Fix route button, improve file details --- CHDataManagement/Views/Files/FileDetailView.swift | 4 ++-- CHDataManagement/Views/Pages/Commands/Insert+Route.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHDataManagement/Views/Files/FileDetailView.swift b/CHDataManagement/Views/Files/FileDetailView.swift index 4964c8b..9ee733a 100644 --- a/CHDataManagement/Views/Files/FileDetailView.swift +++ b/CHDataManagement/Views/Files/FileDetailView.swift @@ -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", diff --git a/CHDataManagement/Views/Pages/Commands/Insert+Route.swift b/CHDataManagement/Views/Pages/Commands/Insert+Route.swift index 9873ed0..04982bc 100644 --- a/CHDataManagement/Views/Pages/Commands/Insert+Route.swift +++ b/CHDataManagement/Views/Pages/Commands/Insert+Route.swift @@ -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") } }