fix: slider height
This commit is contained in:
@@ -45,3 +45,17 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user