Ad: fix stray video floaters outside our container.

This was tested to be removed during evaluation, but seems like there are cases where it comes back.

This solution should be more robust: hide for all, except when in our designated container.
This commit is contained in:
infinite-persistence 2022-05-30 15:44:46 +08:00
parent 530433b508
commit 9ff88ecdd1
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -15,6 +15,12 @@
}
}
.avp-p-wrapper {
// Hide by default, so that any stray floater won't be visible.
// We'll enable it only within our designated container.
display: none;
}
// Inline Video Ads
// The default is coded for list-layout;
// --tile and other modifiers adjust accordingly.
@ -61,6 +67,11 @@
width: $width;
}
.avp-p-wrapper {
// Only enable this within our container.
display: block;
}
div[style*='transform-origin: left bottom'],
div[style*='transform-origin: right bottom'] {
// [Floating ad]