Skip to content
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

Enable lightbox animation for avis, make them rounded #6081

Open
wants to merge 5 commits into
base: images-lightbox-next
Choose a base branch
from

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Nov 2, 2024

Stacked on #6047, #6073, and #6048


Extends #6048 to opening profile avatars. While at it, I've also made the lightbox display them as circles (or rounded rects for feeds/SPs) and limited displayed size on the web so they don't blow up.

Review without spaces

Known Issues

Test Plan

pic_ios.mov
android.mov
Screen.Recording.2024-11-02.at.15.14.34.mov

Verify normal lightbox (regular images) still works too.


const onPressAvi = React.useCallback(() => {
if (
avatar // TODO && !(view.moderation.avatar.blur && view.moderation.avatar.noOverride)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't new, i just moved it from above. i don't have context on this todo

Copy link

github-actions bot commented Nov 2, 2024

Old size New size Diff
8.12 MB 8.12 MB 789 B (0.01%)

@gaearon gaearon mentioned this pull request Nov 2, 2024
9 tasks
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.

1 participant