Skip to content

Commit

Permalink
fix refresh button position on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Dec 9, 2024
1 parent 8891df3 commit 2c7494d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,10 @@ input.single_hide {
cursor: pointer;
}

#refresh_button:hover {
background-color: #CBE7CD;
}

.toggle_btn_reg {
left: 43%;
}
Expand Down
4 changes: 3 additions & 1 deletion app/assets/stylesheets/mobile-application.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ input.single_hide {

#zoom_in_more {
position: relative;
padding: 0px 5px 10px;
padding: 0px 5px;
font-size: 20px;
width: auto;
left: 0;
Expand All @@ -649,6 +649,7 @@ input.single_hide {
top: 440px;
left: 50% !important;
margin-left: -55px;
position: absolute;
}

#search_link_wrapper {
Expand All @@ -657,6 +658,7 @@ input.single_hide {
z-index: 100;
top: 105px;
left: 20px !important;
position: absolute;
}

#search_link_wrapper a {
Expand Down
4 changes: 2 additions & 2 deletions app/views/pages/map.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
= render :partial => 'locations/map'

#search_link_wrapper.hide_button.toggle_btn_reg
=link_to "Link to this Search Result", "", :id => "search_link"
=link_to "Link to this Search Result", "", :id => "search_link", :class => "font14"
#refresh_button.toggle_btn_reg
%div.refresh_button{:onclick => "zoomCheck();"}
Refresh this map area
#zoom_in_more.toggle_btn_reg
%span.red.font14.p_5
%span.red.font14
Zoom in further to refresh results!

%button#top_button{onclick: "topFunction()", title: "Go to top"} Top
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/operators.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
= render :partial => 'locations/map'

#search_link_wrapper.hide_button.toggle_btn_reg
=link_to "Link to this Search Result", "", :id => "search_link"
=link_to "Link to this Search Result", "", :id => "search_link", :class => "font14"
#zoom_in_more
%button#top_button{onclick: "topFunction()", title: "Go to top"} Top

Expand Down
4 changes: 2 additions & 2 deletions app/views/pages/region.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#map
= render :partial => 'locations/map'
#search_link_wrapper.hide_button.toggle_btn_reg
=link_to "Link to this Search Result", "", :id => "search_link"
=link_to "Link to this Search Result", "", :id => "search_link", :class => "font14"
#refresh_button.toggle_btn_reg
%div.refresh_button{:onclick => "zoomCheck();"}
Refresh this map area
#zoom_in_more.toggle_btn_reg
%span.red.font14.p_5
%span.red.font14
Zoom in further to refresh results!

%button#top_button{onclick: "topFunction()", title: "Go to top"} Top
Expand Down

0 comments on commit 2c7494d

Please sign in to comment.