Skip to content

Commit

Permalink
Merge pull request #395 from nikhilchauhangithub/Nikhil/Updaterespons…
Browse files Browse the repository at this point in the history
…iveness

responsiveness of the Why KubeEdge section
  • Loading branch information
kubeedge-bot authored Aug 7, 2023
2 parents a0fb595 + bc0411c commit 9c0619e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/why/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* Default styles */
.whyContainer {
display: flex;
flex-direction: column;
Expand All @@ -18,4 +19,17 @@
.reasonContent {
font-size: 0.9rem;
white-space: pre-wrap;
}
}

/* Responsive styles */
@media screen and (max-width: 768px) {
.reasonBox {
flex-basis: 50%; /* Show two reasons per row on screens up to 768px */
}
}

@media screen and (max-width: 480px) {
.reasonBox {
flex-basis: 100%; /* Show one reason per row on screens up to 480px */
}
}

0 comments on commit 9c0619e

Please sign in to comment.