|
@@ -27,7 +27,7 @@ export default (props) => {
|
27
|
27
|
height,
|
28
|
28
|
overflow: 'hidden',
|
29
|
29
|
width: '100%',
|
30
|
|
- objectFit: 'fill',
|
|
30
|
+ objectFit: 'contain',
|
31
|
31
|
}), [height]);
|
32
|
32
|
|
33
|
33
|
useEffect(() => {
|
|
@@ -52,7 +52,6 @@ export default (props) => {
|
52
|
52
|
});
|
53
|
53
|
handNext();
|
54
|
54
|
|
55
|
|
-
|
56
|
55
|
const boxHeight = boxRef.current.offsetHeight;
|
57
|
56
|
setHeight(boxHeight ? `${boxHeight}px` : '100%');
|
58
|
57
|
}, []);
|
|
@@ -78,7 +77,7 @@ export default (props) => {
|
78
|
77
|
<div
|
79
|
78
|
onMouseEnter={onMouseEnter}
|
80
|
79
|
onMouseLeave={onMouseLeave}
|
81
|
|
- style={{ height, overflow: "hidden" }}
|
|
80
|
+ style={{ height, overflow: "hidden", background: '#081A48' }}
|
82
|
81
|
ref={boxRef}
|
83
|
82
|
>
|
84
|
83
|
<Carousel
|