Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #8423: Remove unnecessary animation in asset detail #8424

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,20 @@ struct AssetDetailHeaderView: View {
}
HStack {
tokenImageNameAndNetwork
.transaction { transaction in
transaction.animation = nil
transaction.disablesAnimations = true
}
}
}
.frame(maxWidth: .infinity, alignment: .leading)
} else {
HStack {
tokenImageNameAndNetwork
.transaction { transaction in
transaction.animation = nil
transaction.disablesAnimations = true
}
if horizontalSizeClass == .regular {
Spacer()
DateRangeView(selectedRange: $assetDetailStore.timeframe)
Expand Down Expand Up @@ -255,6 +263,10 @@ struct AssetDetailHeaderView: View {
}
actionButtonsContainer
.padding(.horizontal, assetDetailStore.assetDetailToken.isFungibleToken ? 0 : 16)
.transaction { transaction in
transaction.animation = nil
transaction.disablesAnimations = true
}
}
}
}
Expand Down