-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix: context menu jank #21844
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: context menu jank #21844
Conversation
…en transition is complete
|
Oh darn, this issue has annoyed me for quite a while. I wonder if there is any native CSS's properties we can use instead of having to rely on the the transition life cycle |
|
Are you worried about performance? I can't see that being an issue with this. |
web/src/lib/components/shared-components/context-menu/context-menu.svelte
Outdated
Show resolved
Hide resolved
danieldietzler
left a comment
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.
I feel like this must be possible without animations but this is probably good enough for now. Thanks!
web/src/lib/components/shared-components/context-menu/context-menu.svelte
Outdated
Show resolved
Hide resolved
|
Fixes #17312 |
Co-authored-by: Alex <[email protected]>
|
I removed the comment. Should be good to go now |
* Fix issue with context menu jank by only applying overflow styling when transition is complete * Remove comment Co-authored-by: Alex <[email protected]> --------- Co-authored-by: Alex <[email protected]>
Description
This fixes an issue with the context menu in which the menu has an undesired shift in width while expanding, which is caused by scrollbars displaying briefly before disappearing.
The fix is to only apply the
overflow: autoonce the CSS transition has completed.How Has This Been Tested?
Opened a photo and opened the context menu
Screenshots (if appropriate)
Before video (slowed down):
contextmenu.mp4
After video (slowed down):
contextmenuafter.mp4
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
Copilot helped