Show post header thread icon more consistently
This commit is contained in:
parent
83d236426b
commit
a74f292696
|
@ -43,6 +43,11 @@ public class StatusRowViewModel: ObservableObject {
|
||||||
var filter: Filtered? {
|
var filter: Filtered? {
|
||||||
status.reblog?.filtered?.first ?? status.filtered?.first
|
status.reblog?.filtered?.first ?? status.filtered?.first
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isThread: Bool {
|
||||||
|
status.reblog?.inReplyToId != nil || status.reblog?.inReplyToAccountId != nil ||
|
||||||
|
status.inReplyToId != nil || status.inReplyToAccountId != nil
|
||||||
|
}
|
||||||
|
|
||||||
var highlightRowColor: Color {
|
var highlightRowColor: Color {
|
||||||
if status.visibility == .direct {
|
if status.visibility == .direct {
|
||||||
|
|
|
@ -72,7 +72,7 @@ struct StatusRowHeaderView: View {
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private var threadIcon: some View {
|
private var threadIcon: some View {
|
||||||
if viewModel.status.reblog?.inReplyToAccountId != nil || viewModel.status.inReplyToAccountId != nil {
|
if viewModel.isThread {
|
||||||
Image(systemName: "bubble.left.and.bubble.right")
|
Image(systemName: "bubble.left.and.bubble.right")
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.aspectRatio(contentMode: .fit)
|
||||||
|
|
Loading…
Reference in New Issue