From c348b8b7821ff0c34c982116c2666fe6b382b0d7 Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 23 Mar 2021 18:51:38 +0800 Subject: [PATCH] Fix bug. --- modules/archive/archive_index7.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/archive/archive_index7.html.erb b/modules/archive/archive_index7.html.erb index 3a8b2a5..cd4449f 100644 --- a/modules/archive/archive_index7.html.erb +++ b/modules/archive/archive_index7.html.erb @@ -40,7 +40,7 @@ if( window.location.href.indexOf('/en/') > -1 ) { $('.file-thead').replaceWith('
Download file
') } $(document).ready(function(){ - if(window.innerWidth){ + if(window.innerWidth >= 768){ $(".archive-items .date").each(function(i,d){ $(d).parent().eq(0).children().css("min-height",$(d).parent().height()); }) @@ -49,7 +49,7 @@ $(document).ready(function(){ } }) $(window).resize(function(){ - if(window.innerWidth){ + if(window.innerWidth >= 768){ $(".archive-items .date").each(function(i,d){ $(d).parent().eq(0).children().css("min-height",$(d).parent().height()); })