fix post-card height correction
This commit is contained in:
@@ -192,6 +192,7 @@ a.focused {
|
|||||||
|
|
||||||
.post-cards .card .card-footer {
|
.post-cards .card .card-footer {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-summery {
|
.post-summery {
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ var isMobile = false, isTablet = false, isLaptop = false;
|
|||||||
let el = postCardHolder.children;
|
let el = postCardHolder.children;
|
||||||
let maxHeight = 0;
|
let maxHeight = 0;
|
||||||
for (let i = 0; i < el.length; i++) {
|
for (let i = 0; i < el.length; i++) {
|
||||||
if (el[i].children[0].clientHeight > maxHeight) {
|
if (el[i].children[1].clientHeight > maxHeight) {
|
||||||
maxHeight = el[i].children[0].clientHeight;
|
maxHeight = el[i].children[1].clientHeight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i = 0; i < el.length; i++) {
|
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;")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user