StatusRow: Reuse context menu + disable avatar image processor for smoother scrolling

This commit is contained in:
Thomas Ricouard 2023-01-28 07:05:26 +01:00
parent 1a0aa3fb84
commit a52f0f9fbe
2 changed files with 1 additions and 2 deletions

View file

@ -60,7 +60,6 @@ public struct AvatarView: View {
placeholderView
}
}
.processors([.resize(size: size.size), .roundedCorners(radius: size.cornerRadius)])
.frame(width: size.size.width, height: size.size.height)
}
}

View file

@ -303,7 +303,7 @@ public struct StatusRowView: View {
private var menuButton: some View {
Menu {
StatusRowContextMenu(viewModel: viewModel)
contextMenu
} label: {
Image(systemName: "ellipsis")
.frame(width: 30, height: 30)