From 1057c5f6c4613f26ca2b7aeda599c1d06dd9f88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 24 Sep 2022 13:15:03 +0800 Subject: [PATCH] fix error --- app/assets/javascripts/theater.js | 3 +++ app/views/galleries/show.html.erb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index 0db4eae..5277ea7 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -41,6 +41,9 @@ window.GalleryTheater = function() { button_stop_string = '', playtimeoutID; var initialize = function() { + if ($('#orbit-bar').height()>0){ //for show page + $('#gallery-theater-stage>.gallery').css('margin-top','2.4em') + } stage = $("#gallery-theater-stage"); closeBtn = stage.find(".gallery-close"); switchBtn = stage.find(".gallery-theme-switch"); diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index bd3ff5a..2fd8a6a 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -86,7 +86,7 @@ <%= javascript_include_tag "theater" %> <% OrbitHelper.render_meta_tags([{"name" => "mobile-web-app-capable","content" => "yes"},{"name" => "apple-mobile-web-app-status-bar-style","content" => "black-translucent"}]) %>