File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
import React , { useCallback , useRef } from 'react' ;
3
+ import MediaQuery from 'react-responsive' ;
3
4
import { useSelector } from 'react-redux' ;
4
5
import { useHistory } from 'react-router-dom' ;
5
6
import { useTranslation } from 'react-i18next' ;
@@ -54,7 +55,7 @@ const Overlay = ({
54
55
< header className = "overlay__header" >
55
56
< h2 className = "overlay__title" > { title } </ h2 >
56
57
< div className = "overlay__actions" >
57
- { actions }
58
+ < MediaQuery minWidth = { 770 } > { actions } </ MediaQuery >
58
59
< button
59
60
className = "overlay__close-button"
60
61
onClick = { close }
@@ -64,6 +65,11 @@ const Overlay = ({
64
65
</ button >
65
66
</ div >
66
67
</ header >
68
+ < MediaQuery maxWidth = { 769 } >
69
+ { actions && (
70
+ < div className = "overlay__actions-mobile" > { actions } </ div >
71
+ ) }
72
+ </ MediaQuery >
67
73
{ children }
68
74
</ section >
69
75
</ div >
Original file line number Diff line number Diff line change 51
51
display : flex ;
52
52
}
53
53
54
+ .overlay__actions-mobile {
55
+ padding-left : #{24 / $base-font-size } rem;
56
+ }
57
+
54
58
.overlay__title {
55
59
font-size : #{math .div (21 , $base-font-size )} rem;
56
60
}
You can’t perform that action at this time.
0 commit comments