Skip to content

Commit 7e1bd26

Browse files
authored
Merge pull request #8180 from tejaswiverma121-byte/fix/8175-components-grid-responsive
fix(integrations): responsive grid layout for individual components (#8175)
2 parents 4d33d38 + 55fff5d commit 7e1bd26

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

‎src/sections/Meshery/Meshery-integrations/Individual-Integrations/Component.style.js‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,20 @@ export const ComponentsWrapper = styled.div`
2323
}
2424
2525
.componentsSection {
26-
display: flex;
27-
flex-wrap: wrap;
26+
display: grid;
27+
grid-template-columns: repeat(1, 1fr);
2828
gap: 1.5rem;
2929
padding: 3rem 2rem 5rem 2rem;
30-
justify-content: center;
30+
31+
@media (min-width: 600px) {
32+
grid-template-columns: repeat(2, 1fr);
33+
}
34+
35+
@media (width > 1024px) {
36+
grid-template-columns: repeat(3, 1fr);
37+
}
3138
}
39+
3240
.maincontainer {
3341
display: flex;
3442
align-items: center;
@@ -37,16 +45,15 @@ export const ComponentsWrapper = styled.div`
3745
padding: 0.5rem 1rem;
3846
border-radius: 0.85rem;
3947
width: 100%;
40-
flex: 30%;
41-
max-width: 350px;
4248
}
4349
4450
.items {
4551
border-radius: 0.625rem;
4652
text-transform: uppercase;
4753
color: ${(props) => props.theme.text};
4854
font-size: 0.875rem;
49-
transition: all .1s ease-in-out;
55+
transition: all 0.1s ease-in-out;
5056
line-height: 1.1875rem;
5157
width: 100%;
58+
}
5259
`;

0 commit comments

Comments
 (0)