浏览代码

Merge pull request #584 from Automattic/fix/dyad2-too-short-class-logic

Dyad 2: Fix fade over short posts on blog page
Daniel Dudzic 5 年之前
父节点
当前提交
8e263de356
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dyad-2/js/global.js

+ 1 - 1
dyad-2/js/global.js

@@ -95,7 +95,7 @@
 				$contentHeight = $content.innerHeight(),
 				$wholeContentHeight = $headerHeight + $contentHeight;
 
-			if ( ( $innerContainHeight - $linkMoreHeight ) <= $wholeContentHeight ) {
+			if ( ( $innerContainHeight - $linkMoreHeight ) < $wholeContentHeight ) {
 				$contain.parent().addClass('too-short');
 			} else {
 				$contain.parent().removeClass('too-short');