fix post-card height correction

This commit is contained in:
hossainemruz 2020-06-13 01:52:23 +06:00
parent 3291da042b
commit 9ca1afca98
2 changed files with 4 additions and 3 deletions

View file

@ -192,6 +192,7 @@ a.focused {
.post-cards .card .card-footer {
background: #fff;
margin-top: auto;
}
.post-summery {

View file

@ -32,12 +32,12 @@ var isMobile = false, isTablet = false, isLaptop = false;
let el = postCardHolder.children;
let maxHeight = 0;
for (let i = 0; i < el.length; i++) {
if (el[i].children[0].clientHeight > maxHeight) {
maxHeight = el[i].children[0].clientHeight;
if (el[i].children[1].clientHeight > maxHeight) {
maxHeight = el[i].children[1].clientHeight;
}
}
for (let i = 0; i < el.length; i++) {
el[i].children[0].setAttribute("style", "min-height: " + maxHeight + "px;")
el[i].children[1].setAttribute("style", "min-height: " + maxHeight + "px;")
}
}
}