IMPR: Store Carousel UI at the element, fix embed video aspect ratio

This commit is contained in:
Tony Air 2021-08-21 00:11:52 +02:00
parent c66a1da4e4
commit 01083045ba
2 changed files with 14 additions and 0 deletions

View File

@ -9,6 +9,8 @@ const CarouselUI = ((window) => {
document.querySelectorAll(`.${NAME}`).forEach((el, i) => {
const carousel = new Carousel(el);
el.ui = carousel;
// create next/prev arrows
if (el.dataset.bsArrows) {
const next = document.createElement("button");

View File

@ -242,3 +242,15 @@ img {
img {
border: 1px dashed;
}
.ss-htmleditorfield-file.embed {
@include responsive-ratio(4,3,true);
position: relative;
iframe {
position: absolute;
left: 0;
right: 0;
top:0;
bottom: 0;
}
}