File tree 2 files changed +7
-3
lines changed
packages/gatsby-theme-newrelic/src/components
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ const GlobalFooter = ({ className }) => {
67
67
margin: 0 auto ;
68
68
69
69
@media screen and (max-width : 760px ) {
70
+ font-size : 0.5rem ;
70
71
justify-content : center;
71
72
text-align : center;
72
73
grid-template-columns : auto;
@@ -102,7 +103,7 @@ const GlobalFooter = ({ className }) => {
102
103
flex-wrap : wrap;
103
104
justify-content : flex-end;
104
105
grid-area : legal;
105
- max-width : ${ osanoPresent ? '29rem ' : '32rem' } ;
106
+ max-width : ${ osanoPresent ? 'fit-content ' : '32rem' } ;
106
107
107
108
a {
108
109
margin-left : 0.75rem ;
@@ -141,6 +142,10 @@ const GlobalFooter = ({ className }) => {
141
142
& : hover svg {
142
143
filter : invert (100% );
143
144
}
145
+
146
+ @media screen and (max-width : 760px ) {
147
+ font-size : 0.5rem ;
148
+ }
144
149
` }
145
150
onClick = { handlePrivacyClick }
146
151
>
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ const GlobalSearch = ({ onClose }) => {
32
32
const [ selected , setSelected ] = useState ( null ) ;
33
33
const possibleSelections = results . length + recentQueries . length ;
34
34
35
- useScrollFreeze ( open ) ;
36
-
37
35
const moveUp = ( ) =>
38
36
setSelected ( ( s ) => {
39
37
if ( s == null ) return possibleSelections - 1 ;
@@ -69,6 +67,7 @@ const GlobalSearch = ({ onClose }) => {
69
67
} ) ;
70
68
71
69
const showSearchDropdown = query . length > 1 && open ;
70
+ useScrollFreeze ( showSearchDropdown ) ;
72
71
73
72
return (
74
73
< >
You can’t perform that action at this time.
0 commit comments