From 8d4fe60f28083c3a19f4a7c72c7b256e6958e84d Mon Sep 17 00:00:00 2001 From: "Najjar\\NajjarV02" Date: Thu, 21 May 2026 17:41:06 +0400 Subject: [PATCH] fix: BentoGrid flagship tile mobile overlap 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) --- src/components/robotics/BentoGrid.tsx | 76 +++++++++++++++++------- src/components/robotics/CompanyStory.tsx | 10 +++- 2 files changed, 65 insertions(+), 21 deletions(-) diff --git a/src/components/robotics/BentoGrid.tsx b/src/components/robotics/BentoGrid.tsx index b4a81ba..b270ce1 100644 --- a/src/components/robotics/BentoGrid.tsx +++ b/src/components/robotics/BentoGrid.tsx @@ -22,26 +22,28 @@ export function BentoGrid() { }} > -
- Premium robotics in Dubai -
-
- Flagship · Dubai -

- Unitree G1 humanoid live in our Dubai showroom. -

-

- Configure persona, attire, and accessories. Then book a live demo. -

-
- View G1 - Configure +
+
+ Flagship · Dubai +

+ Unitree G1 humanoid live in our Dubai showroom. +

+

+ Configure persona, attire, and accessories. Then book a live demo. +

+
+ View G1 + Configure +
+
+
+ Premium robotics in Dubai
@@ -117,6 +119,40 @@ export function BentoGrid() { @media (max-width: 540px) { .bento-tile-4 { grid-column: span 12 !important; } } + + .bento-flagship { + position: relative; + display: flex; + flex-direction: column; + gap: 1rem; + width: 100%; + height: 100%; + } + .bento-flagship-copy { + position: relative; + z-index: 2; + display: flex; + flex-direction: column; + gap: 0.7rem; + } + .bento-flagship-media { + position: relative; + width: 100%; + min-height: 220px; + flex: 1; + } + @media (min-width: 900px) { + .bento-flagship { display: block; } + .bento-flagship-copy { max-width: 50%; } + .bento-flagship-media { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 50%; + min-height: 0; + } + } `}
); diff --git a/src/components/robotics/CompanyStory.tsx b/src/components/robotics/CompanyStory.tsx index b3de054..1593176 100644 --- a/src/components/robotics/CompanyStory.tsx +++ b/src/components/robotics/CompanyStory.tsx @@ -193,10 +193,10 @@ export function CompanyStory() { {/* Right capability modules */}
);