Fix the width of the indicator so that it would stop reflowing the cell when changed to star
This commit is contained in:
parent
bf8a52d710
commit
2f99cd01c1
@ -13,6 +13,8 @@ struct TimelineItemStatusView: View {
|
||||
var status: TimelineItemStatus
|
||||
|
||||
@ViewBuilder var statusView: some View {
|
||||
ZStack {
|
||||
Spacer().frame(width: 12)
|
||||
switch status {
|
||||
case .showUnread:
|
||||
AppAssets.timelineUnread
|
||||
@ -31,6 +33,7 @@ struct TimelineItemStatusView: View {
|
||||
.opacity(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
statusView
|
||||
|
Loading…
x
Reference in New Issue
Block a user