1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

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 Luna
parent 96fea8d7d2
commit ae79155ac2
2 changed files with 1 additions and 7 deletions

View file

@ -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%;

View file

@ -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(),"
}, },
}, },