fix: BentoGrid flagship tile mobile overlap
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

Robot image and text overlapped on mobile because image was
absolutely positioned over the full card while text was max-width 50%.
Refactored to stacked flex layout below 900px (copy on top, image
below in own region), original side-by-side layout preserved at
desktop via media query.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Najjar\NajjarV02
2026-05-21 17:41:06 +04:00
co-authored by Claude Opus 4.7
parent 5a40f6b733
commit 8d4fe60f28
2 changed files with 65 additions and 21 deletions
+9 -1
View File
@@ -193,10 +193,10 @@ export function CompanyStory() {
{/* Right capability modules */}
<div
className="cs-pillars"
style={{
position: 'relative',
display: 'grid',
gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',
gap: '0.875rem',
minWidth: 0,
}}
@@ -246,6 +246,14 @@ export function CompanyStory() {
grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
}
.cs-pillars {
grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
.cs-pillars {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
`}</style>
</div>
);