From baab75192155b5eabff973ec812f9581b72b6759 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 2 Oct 2020 13:43:52 +0800 Subject: [PATCH] fix error --- app/assets/stylesheets/space-frontend.scss | 4 ++-- app/assets/stylesheets/spaces.scss | 4 ++-- modules/space/show.html.erb | 12 ++++++------ modules/space/unit.html.erb | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/assets/stylesheets/space-frontend.scss b/app/assets/stylesheets/space-frontend.scss index 389eee1..52254c6 100644 --- a/app/assets/stylesheets/space-frontend.scss +++ b/app/assets/stylesheets/space-frontend.scss @@ -7,7 +7,7 @@ align-items: center; justify-content: center; } -.s-space.show-space .selection-box-label.absolute-center{ +.s-space.show-space .selection-box-label{ display: none; } .fa.fa-map-marker{ @@ -22,7 +22,7 @@ border-width: 1em 1em 0 1em; border-color: #2196f3 transparent transparent transparent; } -.s-space.show-space .selection-box-label.absolute-center.active{ +.s-space.show-space .selection-box-label.active{ display: block; position: absolute; bottom: 110%; diff --git a/app/assets/stylesheets/spaces.scss b/app/assets/stylesheets/spaces.scss index 7a22f21..181b68d 100644 --- a/app/assets/stylesheets/spaces.scss +++ b/app/assets/stylesheets/spaces.scss @@ -376,10 +376,10 @@ border-color: #2196f3 transparent transparent transparent; } } -.s-space.show-space .selection-box-label.absolute-center{ +.s-space.show-space .selection-box-label{ display: none; } -.s-space.show-space .selection-box-label.absolute-center.active{ +.s-space.show-space .selection-box-label.active{ display: block; position: absolute; bottom: 110%; diff --git a/modules/space/show.html.erb b/modules/space/show.html.erb index c3ce324..aa4073f 100644 --- a/modules/space/show.html.erb +++ b/modules/space/show.html.erb @@ -67,7 +67,7 @@ if (obj[0].url == "#") { temp.find('.pulse').remove(); } - var text = $(this).find('.selection-box-label.absolute-center') + var text = $(this).find('.selection-box-label') text.append('
') temp.prepend('') temp.find('.fa-map-marker').css('color',map_color) @@ -77,25 +77,25 @@ $(this).on('mouseleave',function(){ var pin_link = $(this).find('.s-space__pin-link') if (!pin_link.is(':focus')){ - $(this).find('.selection-box-label.absolute-center').removeClass('active') + $(this).find('.selection-box-label').removeClass('active') inactive_map(pin_link) } }) temp.on('focus',function(){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').addClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').addClass('active') active_map(this) }) temp.on('mouseover',function(){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').addClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').addClass('active') active_map(this) }) temp.on('blur',function(){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').removeClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').removeClass('active') inactive_map(this) }) temp.on('mouseleave',function(){ if (!$(this).is(':focus')){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').removeClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').removeClass('active') inactive_map(this) } }) diff --git a/modules/space/unit.html.erb b/modules/space/unit.html.erb index 9e9c230..b123f68 100644 --- a/modules/space/unit.html.erb +++ b/modules/space/unit.html.erb @@ -66,7 +66,7 @@ if (obj[0].url == "#") { temp.find('.pulse').remove(); } - var text = $(this).find('.selection-box-label.absolute-center') + var text = $(this).find('.selection-box-label') text.append('
') temp.prepend('') temp.find('.fa-map-marker').css('color',map_color) @@ -77,25 +77,25 @@ $(this).on('mouseleave',function(){ var pin_link = $(this).find('.s-space__pin-link') if (!pin_link.is(':focus')){ - $(this).find('.selection-box-label.absolute-center').removeClass('active') + $(this).find('.selection-box-label').removeClass('active') inactive_map(pin_link) } }) temp.on('focus',function(){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').addClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').addClass('active') active_map(this) }) temp.on('mouseover',function(){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').addClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').addClass('active') active_map(this) }) temp.on('blur',function(){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').removeClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').removeClass('active') inactive_map(this) }) temp.on('mouseleave',function(){ if (!$(this).is(':focus')){ - $(this).parents('.selection-box.overlay').find('.selection-box-label.absolute-center').removeClass('active') + $(this).parents('.selection-box.overlay').find('.selection-box-label').removeClass('active') inactive_map(this) } })