Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed Sep 28, 2023
1 parent 734096a commit 82eb2ba
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/block-library/src/image/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,16 +508,16 @@ function setStyles( context, event ) {
// transformation. In any case, adding 1 pixel to the container width and height solves
// the problem, though this can be removed if the issue is fixed in the future.
styleTag.innerHTML = `
:root {
--wp--lightbox-initial-top-position: ${ screenPosY }px;
--wp--lightbox-initial-left-position: ${ screenPosX }px;
--wp--lightbox-container-width: ${ containerWidth + 1 }px;
--wp--lightbox-container-height: ${ containerHeight + 1 }px;
--wp--lightbox-image-width: ${ lightboxImgWidth }px;
--wp--lightbox-image-height: ${ lightboxImgHeight }px;
--wp--lightbox-scale: ${ containerScale };
}
`;
:root {
--wp--lightbox-initial-top-position: ${ screenPosY }px;
--wp--lightbox-initial-left-position: ${ screenPosX }px;
--wp--lightbox-container-width: ${ containerWidth + 1 }px;
--wp--lightbox-container-height: ${ containerHeight + 1 }px;
--wp--lightbox-image-width: ${ lightboxImgWidth }px;
--wp--lightbox-image-height: ${ lightboxImgHeight }px;
--wp--lightbox-scale: ${ containerScale };
}
`;
}

/*
Expand Down

0 comments on commit 82eb2ba

Please sign in to comment.