Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorhossainemruz <emruz@appscode.com>2020-06-12 22:52:23 +0300
committerhossainemruz <emruz@appscode.com>2020-06-12 22:52:23 +0300
commit9ca1afca986acebf082616cfe5ab35ddb0606dfc (patch)
tree8e236fe3bff983705c730da71b9b26fc97b786d1 /static
parent3291da042bd0d05961cad44a5b5d74ca9e6cc71a (diff)
fix post-card height correction
Diffstat (limited to 'static')
-rw-r--r--static/assets/css/list.css1
-rw-r--r--static/assets/js/list.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/static/assets/css/list.css b/static/assets/css/list.css
index 50fd235..3d1422f 100644
--- a/static/assets/css/list.css
+++ b/static/assets/css/list.css
@@ -192,6 +192,7 @@ a.focused {
.post-cards .card .card-footer {
background: #fff;
+ margin-top: auto;
}
.post-summery {
diff --git a/static/assets/js/list.js b/static/assets/js/list.js
index 1e71c69..5ca2b52 100644
--- a/static/assets/js/list.js
+++ b/static/assets/js/list.js
@@ -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;")
}
}
}