Fix tag assignment in post UI

This commit is contained in:
Christoph Hagen
2025-06-16 10:09:38 +02:00
parent 1d0eba9d78
commit 8508719dbe
13 changed files with 74 additions and 54 deletions

View File

@ -15,11 +15,24 @@ struct PostContentView: View {
}
var body: some View {
LocalizedPostContentView(
post: post.localized(in: language),
other: post.localized(in: language.next),
tags: $post.tags,
page: $post.linkedPage)
let localized = post.localized(in: language)
let other = post.localized(in: language.next)
VStack(alignment: .leading) {
PostImagesView(
post: localized,
other: other)
PostTitleView(post: localized)
if let page = post.linkedPage {
LinkedPageTagView(page: page)
} else {
TagDisplayView(tags: $post.tags)
}
PostLabelsView(
post: localized,
other: other)
PostTextView(post: localized)
}
.padding()
}
}