fix: ImageZoom + PiP (#1894)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Hugo C 2023-10-26 02:17:31 +02:00 committed by GitHub
parent ffe6bb1c5d
commit 8ac8048845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

@ -25,12 +25,6 @@
box-shadow: none; box-shadow: none;
} }
[class*="modalCarouselWrapper"] {
height: fit-content;
top: 50%;
transform: translateY(-50%);
}
[class|="wrapper"]:has(> #vc-imgzoom-magnify-modal) { [class|="wrapper"]:has(> #vc-imgzoom-magnify-modal) {
position: absolute; position: absolute;
left: 50%; left: 50%;

@ -28,7 +28,7 @@ export default definePlugin({
{ {
find: ".nonMediaAttachment]", find: ".nonMediaAttachment]",
replacement: { replacement: {
match: /\.nonMediaAttachment\].{0,10}children:\[\S{3}/, match: /\.nonMediaAttachment\].{0,10}children:\[\S/,
replace: "$&&&$self.renderPiPButton()," replace: "$&&&$self.renderPiPButton(),"
}, },
}, },