Skip to content

The Open Standard for Generative UI

Fix /cloud layout collisions below the 1200px design width (#946)

rahuldoval386fa37f173a
diff --git a/docs/app/(home)/cloud/CloudIntegrationSection.module.css b/docs/app/(home)/cloud/CloudIntegrationSection.module.css
index 5f5e07981..853e49b26 100644
--- a/docs/app/(home)/cloud/CloudIntegrationSection.module.css
+++ b/docs/app/(home)/cloud/CloudIntegrationSection.module.css
@@ -249,6 +249,15 @@
color: rgb(255 255 255 / 72%) !important;
}
+/* Matches the inset ComparisonSection applies at the same breakpoint, so the
+ content stops touching the viewport edges below the 1200px design width. */
+@media (max-width: 1279px) {
+ .inner,
+ .customers {
+ width: calc(100% - 64px);
+ }
+}
+
@media (max-width: 1023px) {
.section {
padding-block: 96px;
diff --git a/docs/app/(home)/cloud/FeaturesSection.module.css b/docs/app/(home)/cloud/FeaturesSection.module.css
index c7c510369..33f45a8ab 100644
--- a/docs/app/(home)/cloud/FeaturesSection.module.css
+++ b/docs/app/(home)/cloud/FeaturesSection.module.css
@@ -11,14 +11,19 @@
display: flex;
align-items: stretch;
justify-content: space-between;
+ gap: 80px;
width: 100%;
- height: 400px;
}
+/* Shrinks below the 1200px design width instead of overflowing; the gap above
+ is the floor, space-between distributes anything left over. */
.featureImage {
- flex: 0 0 720px;
- width: 720px;
- height: 400px;
+ flex: 0 1 720px;
+ align-self: center;
+ min-width: 0;
+ width: auto;
+ height: auto;
+ aspect-ratio: 720 / 400;
border-radius: 24px;
}
@@ -45,7 +50,8 @@
flex-direction: column;
align-self: stretch;
justify-content: space-between;
- width: 400px;
+ min-width: 0;
+ width: auto;
text-align: left;
}
@@ -95,6 +101,14 @@
padding-bottom: 160px;
}
+/* Below the 1200px design width the section would otherwise run edge to edge.
+ Same inset the sibling sections on this page use. */
+@media (max-width: 1279px) {
+ .section {
+ width: calc(100% - 64px);
+ }
+}
+
@media (max-width: 1023px) {
.section {
gap: 96px;
@@ -104,7 +118,6 @@
.card {
flex-direction: column;
gap: 32px;
- height: auto;
}
.featureImage {
@@ -127,8 +140,7 @@
@media (max-width: 767px) {
.section {
- box-sizing: border-box;
- padding-inline: var(--home-section-padding-inline);
+ width: calc(100% - 32px);
}
.featureImage {
diff --git a/docs/app/(home)/cloud/page.module.css b/docs/app/(home)/cloud/page.module.css
index 80ba7f592..63a97c9cf 100644
--- a/docs/app/(home)/cloud/page.module.css
+++ b/docs/app/(home)/cloud/page.module.css
@@ -124,6 +124,10 @@
}
.subtitle {
+ /* The base rule pins this to 400px, which is wider than a small phone and
+ bled off both edges. Let it track the hero width instead. */
+ flex: 0 1 auto;
+ width: 100%;
max-width: none;
margin-left: 0;
font-size: 18px;