From b627b7c83530b39bc394f22ab92a04a3f22e313d Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 3 May 2021 10:20:42 +0800 Subject: [PATCH] Updated. --- assets/javascripts/app.js | 7 +++++++ assets/stylesheets/template/template.scss | 6 ++++++ home/page.html.erb | 1 + 3 files changed, 14 insertions(+) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 89dd882..946be2e 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -547,6 +547,13 @@ $('.tab_content').css({'position': 'relative','display':'block'}); } } + if(window.location.search.indexOf('editmode=on') == -1){ + $(".extra-box").each(function(i,v){ + if($(v).html().trim() == ""){ + $(v).css('display','none') + } + }) + } annc_widget_nav(); //切換語言停留在同一頁 diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss index 024b883..a0a0e31 100644 --- a/assets/stylesheets/template/template.scss +++ b/assets/stylesheets/template/template.scss @@ -23,6 +23,12 @@ //RWD @import "RWD"; +.underMenu li { + white-space: unset; +} +.underMenu { + width: 200px; +} .dropdown-toggle:focus { // outline: 2px solid #43B5FC; diff --git a/home/page.html.erb b/home/page.html.erb index a5fa549..5c95a44 100644 --- a/home/page.html.erb +++ b/home/page.html.erb @@ -13,6 +13,7 @@