From f7602493a987a3233e368f6f9ed5d5c195f635e1 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 9 Dec 2022 16:57:48 +0800 Subject: [PATCH] Fix bug. --- assets/javascripts/app.js | 5 ++--- assets/stylesheets/template/layout/content.scss | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 73d017a..f9d92a2 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -491,8 +491,8 @@ $(window).resize(function() { var navFixed = $('.kenjohn.navFixed'); window.top_barrier_height = (navFixed.length ? navFixed.height() : 0) + $('#orbit-bar').height(); + fix_first_element(); if ($(window).outerWidth() < 769) { - fix_first_element(true); if (resizeTimer) clearTimeout(resizeTimer); $('.outdropdowns').before($('.header-nav')); resizeTimer = setTimeout(function() { @@ -503,8 +503,7 @@ $('.mobile-menu').append($('.modules-menu')); $('.navbar-toggle').bind(orbit.ClickMenuHandler()); } - },500 )} else { - fix_first_element(); + },500 )} else { resizeTimer = setTimeout(function(){ if( $('.mobile-menu .modules-menu').length > 0 ) { $('.navbar-header').after($('.modules-menu')); diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 3d54c39..e792dcd 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -507,9 +507,6 @@ body{ overflow: visible!important; } //內頁 -.inner-page{ - padding: 50px 0; -} .internal-page{ background-color: #fff; .kenjohn {