diff options
author | Wang Chucheng <ccwangchn@gmail.com> | 2020-05-25 17:52:05 +0300 |
---|---|---|
committer | Wang Chucheng <ccwangchn@gmail.com> | 2020-05-25 17:52:05 +0300 |
commit | 4eaaf7656dd475976443f11e1d1ee2a8be4e873b (patch) | |
tree | 49d53823bf7fa1f6b195f3f78362aeedb249e3fd /assets | |
parent | e22b0496599b726eda74afb4b4bede46c81d157c (diff) |
refactor: add alt to og:locale
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/eureka.js | 2 |
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; } |