Skip to content

Commit 04d95a8

Browse files
committed
feat: globe max width on mobile
1 parent e064c43 commit 04d95a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/[locale]/10years/_components/TenYearGlobe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const TenYearGlobe = ({ events }: { events: EventData[] }) => {
4848
const atmosphereColor = resolvedTheme === "dark" ? "#B38DF0" : "#945AF4"
4949

5050
const width = useBreakpointValue({
51-
base: 260,
51+
base: window?.innerWidth - 64 || 260, // Full width on mobile with padding
5252
sm: 400,
5353
md: 500,
5454
lg: 600,
@@ -237,8 +237,8 @@ const TenYearGlobe = ({ events }: { events: EventData[] }) => {
237237
return (
238238
<div
239239
ref={globeContainerRef}
240-
className="relative cursor-grab active:cursor-grabbing"
241-
style={{ width: width, height: width }}
240+
className="relative w-full max-w-full cursor-grab active:cursor-grabbing"
241+
style={{ height: width }}
242242
>
243243
{MemoizedGlobe}
244244
{hoveredEvent && tooltipPos && (

0 commit comments

Comments
 (0)