File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
.flexColumn {
2
- flex-direction : column ;
2
+ @media (max-width : 480px ) {
3
+ flex-direction : row ;
4
+ }
5
+ @media (min-width : 481px ) {
6
+ flex-direction : column ;
7
+ }
3
8
}
4
9
10
+
5
11
div .intro {
6
12
align-items : center ;
7
13
padding : 0 4em ;
8
14
max-height : 100% ;
9
15
10
16
.top {
11
- max-height : 425px ;
12
17
margin-bottom : 75px ;
13
18
overflow : auto ;
14
19
20
+ @media (max-width : 480px ) {
21
+ max-height : calc (100vh - 75px );
22
+ }
23
+ @media (min-width : 481px ) {
24
+ max-height : 425px ;
25
+ }
26
+
15
27
.logo {
16
28
display : block ;
17
29
margin : 20px auto 10px auto ;
@@ -27,6 +39,7 @@ div.intro {
27
39
.description {
28
40
margin : 2em 0 ;
29
41
overflow : auto ;
42
+ max-height : 150px ;
30
43
text-align : center ;
31
44
}
32
45
.options {
Original file line number Diff line number Diff line change @@ -66,6 +66,21 @@ export function init(configUpdates) {
66
66
cmp . gdprAppliesLanguage = response . language ;
67
67
cmp . gdprAppliesLocation = response . location ;
68
68
} ) . then ( ( response ) => {
69
+ function addLocatorFrame ( ) {
70
+ if ( ! window . frames [ '__cmpLocator' ] ) {
71
+ if ( document . body ) {
72
+ var frame = document . createElement ( 'iframe' ) ;
73
+ frame . style . display = 'none' ;
74
+ frame . name = '__cmpLocator' ;
75
+ document . body . appendChild ( frame ) ;
76
+ }
77
+ else {
78
+ setTimeout ( addLocatorFrame , 5 ) ;
79
+ }
80
+ }
81
+ }
82
+
83
+ addLocatorFrame ( ) ;
69
84
store . updateIsEU ( response . applies ) ;
70
85
71
86
// Render the UI
You can’t perform that action at this time.
0 commit comments