From 8ac80488454ba789791f69eb1e196adcf3e8be3a Mon Sep 17 00:00:00 2001 From: Hugo C Date: Thu, 26 Oct 2023 02:17:31 +0200 Subject: [PATCH] fix: ImageZoom + PiP (#1894) Co-authored-by: V --- src/plugins/imageZoom/styles.css | 6 ------ src/plugins/pictureInPicture/index.tsx | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/plugins/imageZoom/styles.css b/src/plugins/imageZoom/styles.css index 9d5867886..09c3c8580 100644 --- a/src/plugins/imageZoom/styles.css +++ b/src/plugins/imageZoom/styles.css @@ -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%; diff --git a/src/plugins/pictureInPicture/index.tsx b/src/plugins/pictureInPicture/index.tsx index f5f0a5128..dc6ddb0b5 100644 --- a/src/plugins/pictureInPicture/index.tsx +++ b/src/plugins/pictureInPicture/index.tsx @@ -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()," }, },