Update screenshot

This commit is contained in:
hossainemruz 2020-06-13 19:23:06 +06:00
parent 9ca1afca98
commit b18cf1d7cd
5 changed files with 6 additions and 5 deletions

View file

@ -137,12 +137,12 @@ var projectCards;
let el = document.getElementById("recent-post-cards").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;")
}
}
}