-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmyDiffFile.diff
56 lines (52 loc) · 1.34 KB
/
myDiffFile.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
diff --git a/app/redux/actions/admin/mapbox.js b/app/redux/actions/admin/mapbox.js
index eecfb93..f4b05aa 100644
--- a/app/redux/actions/admin/mapbox.js
+++ b/app/redux/actions/admin/mapbox.js
@@ -44,7 +44,7 @@ export const displayMap = ( ) => {
map.dragRotate.disable()
map.touchZoomRotate.disableRotation()
- const popup = mapboxPopup( { closeButton: false, closeOnClick: false, anchor: 'bottom' } )
+ const popup = mapboxPopup( { closeButton: false, closeOnClick: false, anchor: 'bottom', maxWidth: 'auto' } )
const featureDOM = document.getElementById( 'Popup' )
popup.setDOMContent( featureDOM )
dispatch( { type: types.SET_POPUP_INSTANCE, to: popup } )
diff --git a/app/redux/components/admin/_popup.scss b/app/redux/components/admin/_popup.scss
index fe38927..73fc209 100644
--- a/app/redux/components/admin/_popup.scss
+++ b/app/redux/components/admin/_popup.scss
@@ -17,8 +17,6 @@ $action-height: 55px;
max-width: 600px;
max-height: 600px;
padding-bottom: $action-height;
- width: 80vh;
- height: 80vh;
font-size: 16px;
.spinner{
@@ -94,4 +92,28 @@ $action-height: 55px;
}
+}
+
+@media all and (orientation:landscape) {
+
+ .popup{
+
+ width: 80vh;
+ height: 80vh;
+
+ }
+
+
+}
+
+@media all and (orientation:portrait) {
+
+ .popup{
+
+ width: 80vw;
+ height: 80vw;
+
+ }
+
+
}
\ No newline at end of file