Fix phone keyboard and touch targets, render notes as Markdown
This commit is contained in:
@@ -1054,7 +1054,11 @@ private func toolTarget(_ input: (any Sendable)?, _ root: String) -> String {
|
||||
guard let path = (i?["file_path"] ?? i?["path"]) as? String else {
|
||||
return ""
|
||||
}
|
||||
return relative(path, root)
|
||||
let short = relative(path, root)
|
||||
if short != path || !path.hasPrefix("/") {
|
||||
return short
|
||||
}
|
||||
return URL(fileURLWithPath: path).lastPathComponent
|
||||
}
|
||||
|
||||
private func relative(_ path: String, _ root: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user