Skip to content

Commit

Permalink
fix: ImageZoom + PiP (#1894)
Browse files Browse the repository at this point in the history
Co-authored-by: V <[email protected]>
  • Loading branch information
lumap and Vendicated authored Oct 26, 2023
1 parent ffe6bb1 commit 8ac8048
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/plugins/imageZoom/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
box-shadow: none;
}

[class*="modalCarouselWrapper"] {
height: fit-content;
top: 50%;
transform: translateY(-50%);
}

[class|="wrapper"]:has(> #vc-imgzoom-magnify-modal) {
position: absolute;
left: 50%;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/pictureInPicture/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default definePlugin({
{
find: ".nonMediaAttachment]",
replacement: {
match: /\.nonMediaAttachment\].{0,10}children:\[\S{3}/,
match: /\.nonMediaAttachment\].{0,10}children:\[\S/,
replace: "$&&&$self.renderPiPButton(),"
},
},
Expand Down

0 comments on commit 8ac8048

Please sign in to comment.