Add a Files tab to the project page
This commit is contained in:
@@ -525,7 +525,7 @@ private struct Attachments: View {
|
||||
case .image:
|
||||
let src = (a.image?.isEmpty == false ? a.image : a.path) ?? ""
|
||||
let caption = a.caption ?? ""
|
||||
if let source = worktreeImageSource(src, taskId) {
|
||||
if let source = worktreeImageSource(src, .task(taskId)) {
|
||||
ByreImage(source: source, src: src)
|
||||
} else if !src.isEmpty {
|
||||
InlineView(inlines: [.link(href: src, [.text(caption.isEmpty ? src : caption)])], ctx: MDContext(taskId: taskId))
|
||||
|
||||
Reference in New Issue
Block a user