Skip to content

Commit ccdb7c0

Browse files
committed
Fixed positioning for zooming at different resolutions
1 parent 13b4946 commit ccdb7c0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

client/sass/_map-controls.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,16 @@ $gov-font: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica", sans-serif;
305305
@media screen and (max-device-width: $tablet-width) {
306306
display: none;
307307
}
308-
@media screen and (min-resolution: 2.2dppx) {
308+
@media screen and (min-device-width: $desktop-width) and (min-resolution: 2.2dppx) {
309309
position: absolute;
310310
bottom: 45px;
311311
margin-right: -5px;
312312
}
313+
@media screen and (min-device-width: $desktop-width) and (max-width: $tablet-width) and (min-resolution: 1.75dppx) {
314+
position: absolute;
315+
bottom: 45px;
316+
margin-right: -5px;
317+
}
313318
}
314319

315320
.esri-zoom.with-scenario-bar {

client/sass/map-page.scss

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ body {
7878
@media screen and (max-device-width: $small-mobile-width) {
7979
bottom: 40px;
8080
}
81+
@media screen and (min-device-width: $desktop-width) and (max-width: $small-mobile-width) and (min-resolution: 4dppx) {
82+
bottom: 20px;
83+
}
8184
}
8285

8386
.os-logo-position-change {

0 commit comments

Comments
 (0)