fix: slider height

This commit is contained in:
Jannat Patel
2021-11-18 10:09:11 +05:30
parent 5bfe56c091
commit e7f47a4485

View File

@@ -45,3 +45,17 @@
</a>
</div>
</div>
<script>
frappe.ready(() => {
let max_height = 0;
$(".carousel-item").each((i, item) => {
if (max_height < $(item).height()) {
max_height = $(item).height();
}
});
$(".carousel-inner").css("height", max_height);
})
</script>