Adds some padding around lightbox zooming

This commit is contained in:
Josh Perez
2021-10-05 13:28:32 -04:00
committed by GitHub
parent 3eff5b73d2
commit bcf1640587
2 changed files with 15 additions and 9 deletions

View File

@@ -489,7 +489,9 @@ export function Lightbox({
return root
? createPortal(
<div
className="Lightbox Lightbox__container"
className={classNames('Lightbox Lightbox__container', {
'Lightbox__container--zoom': zoomType === ZoomType.ZoomAndPan,
})}
onClick={(event: React.MouseEvent<HTMLDivElement>) => {
event.stopPropagation();
event.preventDefault();