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

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorWang Chucheng <ccwangchn@gmail.com>2020-05-25 17:52:05 +0300
committerWang Chucheng <ccwangchn@gmail.com>2020-05-25 17:52:05 +0300
commit4eaaf7656dd475976443f11e1d1ee2a8be4e873b (patch)
tree49d53823bf7fa1f6b195f3f78362aeedb249e3fd /assets
parente22b0496599b726eda74afb4b4bede46c81d157c (diff)
refactor: add alt to og:locale
Diffstat (limited to 'assets')
-rw-r--r--assets/js/eureka.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/eureka.js b/assets/js/eureka.js
index 4fd9e81..beff315 100644
--- a/assets/js/eureka.js
+++ b/assets/js/eureka.js
@@ -78,7 +78,7 @@ function resizeGridItem(item) {
grid = document.getElementsByClassName("masonry")[0];
rowHeight = 0;
rowGap = parseInt(window.getComputedStyle(grid).getPropertyValue('grid-row-gap'));
- rowSpan = Math.ceil((item.querySelector('.grid-content').getBoundingClientRect().height + rowGap) / (rowHeight + rowGap));
+ rowSpan = Math.ceil((item.querySelector('.grid-content').getBoundingClientRect().height) / rowGap);
item.style.gridRowEnd = "span " + rowSpan;
}