Fix keyboard navigation in media modal after clicking image (#37464)

This commit is contained in:
Heath Dutton🕴️ 2026-01-13 05:47:04 -05:00 committed by GitHub
parent 5b54cd7f76
commit be60c4585e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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],