mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Remove room cell animations. (#501)
This commit is contained in:
@@ -71,10 +71,8 @@ struct HomeScreenRoomCell: View {
|
|||||||
.font(.element.footnote)
|
.font(.element.footnote)
|
||||||
.foregroundColor(room.hasUnreads ? .element.brand : .element.tertiaryContent)
|
.foregroundColor(room.hasUnreads ? .element.brand : .element.tertiaryContent)
|
||||||
.id(timestamp)
|
.id(timestamp)
|
||||||
.transition(.opacity.animation(.elementDefault))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.animation(.elementDefault, value: room)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
@@ -88,7 +86,6 @@ struct HomeScreenRoomCell: View {
|
|||||||
Text(lastMessage)
|
Text(lastMessage)
|
||||||
.lastMessageFormatting()
|
.lastMessageFormatting()
|
||||||
.id(lastMessage)
|
.id(lastMessage)
|
||||||
.transition(.opacity.animation(.elementDefault))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +96,6 @@ struct HomeScreenRoomCell: View {
|
|||||||
.frame(width: 12, height: 12)
|
.frame(width: 12, height: 12)
|
||||||
.foregroundColor(.element.brand)
|
.foregroundColor(.element.brand)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
.transition(.opacity.animation(.elementDefault))
|
|
||||||
.padding(.leading, 12)
|
.padding(.leading, 12)
|
||||||
} else {
|
} else {
|
||||||
// Force extra padding between last message text and the right border of the screen if there is no unread dot
|
// Force extra padding between last message text and the right border of the screen if there is no unread dot
|
||||||
@@ -108,7 +104,6 @@ struct HomeScreenRoomCell: View {
|
|||||||
.frame(width: 12, height: 12)
|
.frame(width: 12, height: 12)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.animation(.elementDefault, value: room)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user