Skip to content

Commit c43e9f8

Browse files
Merge pull request #7379 from KhushamBansal/fix/cloud-native-management-mobile-view
fix: mobile view
2 parents d380a60 + 1e41b1a commit c43e9f8

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/components/Features-carousel/FeaturesCarousel.style.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,30 @@ import styled from "styled-components";
22

33
export const FeaturesWrapper = styled.div`
44
.features-carousel {
5+
width: 100%;
6+
display: block;
7+
min-height: 400px;
8+
height: auto;
9+
padding-bottom: 2rem;
10+
visibility: visible;
11+
opacity: 1;
12+
overflow: visible;
13+
514
@media (min-width: 768px) {
615
display:none;
716
}
17+
18+
.slick-slider, .slick-list, .slick-track, .slick-slide {
19+
display: block;
20+
min-height: 200px;
21+
height: auto;
22+
visibility: visible;
23+
}
24+
.slick-slide > div {
25+
height: 100%; /* Ensure inner div takes height */
26+
min-height: 200px;
27+
}
28+
829
img{
930
object-fit:contain;
1031
margin-left:auto;
@@ -13,6 +34,7 @@ export const FeaturesWrapper = styled.div`
1334
1435
.main-heading{
1536
margin-bottom: 2rem;
37+
text-align: center;
1638
}
1739
1840
.feature {

src/sections/Meshery/Meshery-features/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ import img7 from "./feature-images/extensions.webp";
1515
const MesheryFeaturesWrapper = styled.div`
1616
margin: auto;
1717
margin-top: 4rem;
18+
width: 100%;
19+
1820
@media (max-width: 32rem){
1921
margin-top: 4rem;
2022
}
2123
24+
@media (max-width: 767px){
25+
display: block;
26+
visibility: visible;
27+
opacity: 1;
28+
}
29+
2230
.feature-expose {
2331
img {
2432
padding: 0 3rem 1rem;

0 commit comments

Comments
 (0)