-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(NcAppSidebar): animation glitch on toggle #5389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool, thanks!
Slowed down to better see the difference:
Before | After |
---|---|
This could be a little bit slower than before in performance, because it causes animation is width change of the main content, triggering resize observers. But should be fine, NcAppSidebar
does similar change.
If this accurse bad for performance, we can make it absolute during animation:
/backport to next |
Please also check this works on very narrow screens like mobile at 320/400px |
@ShGKme I updated to fix this for the mobile case. What master looks like now on small screenssmall.mp4And here is what it looks like desktop/mobile with my current changes.Files.-.Nextcloud.-.20.March.2024.1.mp4Please let me know if I should change anything else. Cleaning up commits now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5389 +/- ##
==========================================
- Coverage 39.34% 38.62% -0.72%
==========================================
Files 139 142 +3
Lines 3688 4958 +1270
Branches 810 1497 +687
==========================================
+ Hits 1451 1915 +464
- Misses 2021 2954 +933
+ Partials 216 89 -127 ☔ View full report in Codecov by Sentry. |
Signed-off-by: RayBB <RayBB@users.noreply.github.com>
957f0ac
to
85f19d5
Compare
I've rebased the branch onto |
/backport to next |
The backport to # Switch to the target branch and update it
git checkout next
git pull origin next
# Create the new backport branch
git checkout -b backport/5389/next
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 85f19d51
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/5389/next Error: Failed to create pull request: Validation Failed: {"resource":"PullRequest","code":"custom","message":"A pull request already exists for nextcloud-libraries:backport/5389/next."} Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
Signed-off-by: RayBB RayBB@users.noreply.github.com
☑️ Resolves
Apologies, I cannot test this outside of the browser devtools because of #5339 but it is a simple enough change I hope someone else can help test/verify until I can get a local instance working. Thanks!Edit: Finally I was able to test in a local instance and it worked great, looks the same as the video I put below.
🖼️ Screenshots
The "after" video shows before/after
🚧 Tasks
🏁 Checklist
next
requested with a Vue 3 upgrade