File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ const Item = (props) => {
58
58
height = { 140 }
59
59
src = { props . item . attributes . imageUrl }
60
60
alt = { props . item . attributes . name }
61
+ className = { styles . imgItm }
61
62
/>
62
63
< div className = { `p-2 p-md-3 h-auto + ${ styles . content } ` } >
63
64
< h2 className = { `${ styles . heading } ` } > { props . item . attributes . name } </ h2 >
@@ -98,6 +99,13 @@ function Newscarousel(props) {
98
99
initialSlide : 2 ,
99
100
} ,
100
101
} ,
102
+ {
103
+ breakpoint : 300 ,
104
+ settings : {
105
+ slidesToShow : 1 ,
106
+ slidesToScroll : 1
107
+ } ,
108
+ }
101
109
] }
102
110
prevArrow = { < PrevArrow /> }
103
111
nextArrow = { < NextArrow /> }
Original file line number Diff line number Diff line change 36
36
.carousel-item-title {
37
37
font-size : 22.5px ;
38
38
}
39
+
40
+ .imgItm {
41
+ width : 100% ;
42
+ height : 100% ;
43
+ }
44
+
45
+ .content {
46
+ height : 120px !important ;
47
+ }
48
+
49
+ @media only screen and (max-width : 300px ) {
50
+ .content {
51
+ height : 80px !important ;
52
+ }
53
+ }
You can’t perform that action at this time.
0 commit comments