This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ const MarketsNewsWrapper = styled.div`
11
11
grid-template-columns: auto auto auto;
12
12
grid-gap: 30px;
13
13
padding: 10px;
14
+ max-height: 211px;
14
15
15
16
@media ${ device . tabletL } {
16
17
grid-template-columns: auto auto;
18
+ max-height: 330px;
17
19
}
18
20
19
21
@media ${ device . tabletS } {
20
22
grid-template-columns: auto;
21
23
margin:0 auto;
24
+ max-height: 668px;
22
25
}
23
26
`
24
27
@@ -28,6 +31,10 @@ const StyledSpan = styled.span`
28
31
border-radius: 8px;
29
32
`
30
33
34
+ const StyledFlex = styled ( Flex ) `
35
+ max-height: 83px;
36
+ `
37
+
31
38
const MarketNews = ( ) => {
32
39
return (
33
40
< SectionContainer >
@@ -39,7 +46,7 @@ const MarketNews = () => {
39
46
< MarketsNewsWrapper >
40
47
{ market_news_data . filter ( ( data ) => data . report_type === "Weekly report" ) . slice ( 0 , 6 ) . map ( ( data , index ) => {
41
48
return (
42
- < Flex key = { index } >
49
+ < StyledFlex key = { index } >
43
50
< img src = { data . img_source } width = "104px" height = "78px" />
44
51
< Flex ml = "8px" fd = "column" >
45
52
< Header type = "paragraph-2" color = "blue-10" >
@@ -55,7 +62,7 @@ const MarketNews = () => {
55
62
</ Header >
56
63
</ Flex >
57
64
</ Flex >
58
- </ Flex >
65
+ </ StyledFlex >
59
66
)
60
67
} ) }
61
68
</ MarketsNewsWrapper >
You can’t perform that action at this time.
0 commit comments