Skip to content

Conversation

@Aghajari
Copy link

@Aghajari Aghajari commented Sep 3, 2025

Hi, This PR fixes several UI issues and enhances animations in the ProfileMusicView component. Here's what I've changed:

Fixes

Fix: Online text view centering issue
Online text view had left padding that prevented proper centering, now it's perfectly centered. Sorry for that :D

Fix: Music replacement logic
When we have multiple music tracks on profile, from my profile page, deleting the top music from profile causes the music view to disappear completely. It should be replaced with the next music in the playlist instead.

Fix: Avatar collapse animation glitch
Based on the minimizedX changes (from dp(42 + 21) to dp(42 + 4)), the new minimizedX value now also applies in setAvatarExpandProgress. This affects scenarios where users fast scroll up while the avatar is already expanded, which causes a glitch if the new value doesn't apply during the animation.

Added Animations

Added: Music switching animation
Switching the top music in my profile page now includes a smooth translation animation (previous track slides down while the new music data slides in from the top)

Scenario to test:
Add multiple music tracks to your profile, then try to move and switch the top music from your profile page, or simply remove the top music from profile. It should smoothly animate to the next music.

Added: Music removal animation
Removing music from profile now makes the music player resize smoothly (animates height to zero) during the removal process. Before this PR, there was a minor glitch during this process.

Scenario to test:
Go to my profile page, remove the music from your profile and observe the transition.

Added: Music addition animation
Adding music to profile now makes the music player resize with animation (height changes from zero to its target height) as it enters. Before this PR, there was a minor glitch during this interaction.

Scenario to test:

  • Play a music track (don't add it to your profile)
  • Open my profile page
  • Click on music below tabs
  • Add it to your profile
  • The musicView should now enter with a smooth animation

@Aghajari
Copy link
Author

Aghajari commented Sep 3, 2025

@Arseny271

@camodenyamoza-alt
Copy link

Ph444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants