mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
[Glitch] Fix keyboard navigation in media modal after clicking image
Port be60c4585e to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -85,7 +85,7 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
|
||||
setIndex(newIndex);
|
||||
setZoomedIn(false);
|
||||
if (animate) {
|
||||
void api.start({ x: `-${newIndex * 100}%` });
|
||||
void api.start({ x: `calc(-${newIndex * 100}% + 0px)` });
|
||||
}
|
||||
},
|
||||
[api, media.size],
|
||||
|
||||
Reference in New Issue
Block a user