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

Commit

Permalink
Fix #8423: Remove unnecessary animation in asset detail (#8424)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuo-xu committed Nov 17, 2023
1 parent 55e1f39 commit b1f7b6e
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit b1f7b6e

Please sign in to comment.