Skip to content

Commit 3f9e0e8

Browse files
committed
fix: prevent awkward CTA button wrapping (2+1 layout)
- Remove flex-wrap: wrap from .cta-buttons (prevents 2+1 split) - Add @media (max-width: 900px) for vertical button layout on tablets - Buttons now display horizontally on desktop (>900px) or vertically on smaller screens - Eliminates confusing wrap behavior at medium screen widths Tested across breakpoints: desktop (1440px), tablet (768px), mobile (375px)
1 parent dc54165 commit 3f9e0e8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/routes/+page.svelte

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@
528528
.cta-buttons {
529529
display: flex;
530530
gap: 12px;
531-
flex-wrap: wrap;
532531
}
533532
534533
.btn-primary {
@@ -937,6 +936,18 @@
937936
}
938937
}
939938
939+
@media (max-width: 900px) {
940+
.cta-buttons {
941+
flex-direction: column;
942+
align-items: stretch;
943+
}
944+
945+
.btn-primary,
946+
.btn-secondary {
947+
justify-content: center;
948+
}
949+
}
950+
940951
@media (max-width: 640px) {
941952
.hero-title {
942953
font-size: 2rem;
@@ -976,15 +987,9 @@
976987
font-size: 0.9rem;
977988
}
978989
979-
.cta-buttons {
980-
flex-direction: column;
981-
width: 100%;
982-
}
983-
984990
.btn-primary,
985991
.btn-secondary {
986992
width: 100%;
987-
justify-content: center;
988993
}
989994
}
990995
</style>

0 commit comments

Comments
 (0)