2323import React , { useEffect , useState , useMemo } from 'react' ;
2424import type { ObjectGridSchema , DataSource , ViewData } from '@object-ui/types' ;
2525import { useNavigationOverlay } from '@object-ui/react' ;
26- import { NavigationOverlay } from '@object-ui/components' ;
26+ import { NavigationOverlay , cn } from '@object-ui/components' ;
2727import { z } from 'zod' ;
2828import MapGL , { NavigationControl , Marker , Popup } from 'react-map-gl/maplibre' ;
2929import maplibregl from 'maplibre-gl' ;
@@ -501,7 +501,7 @@ export const ObjectMap: React.FC<ObjectMapProps> = ({
501501
502502 if ( loading ) {
503503 return (
504- < div className = { className } >
504+ < div className = { cn ( "min-w-0 overflow-hidden" , className ) } >
505505 < div className = "flex items-center justify-center h-96 bg-muted rounded-lg border" >
506506 < div className = "text-muted-foreground" > Loading map...</ div >
507507 </ div >
@@ -511,7 +511,7 @@ export const ObjectMap: React.FC<ObjectMapProps> = ({
511511
512512 if ( error ) {
513513 return (
514- < div className = { className } >
514+ < div className = { cn ( "min-w-0 overflow-hidden" , className ) } >
515515 < div className = "flex items-center justify-center h-96 bg-muted rounded-lg border" >
516516 < div className = "text-destructive" > Error: { error . message } </ div >
517517 </ div >
@@ -520,7 +520,7 @@ export const ObjectMap: React.FC<ObjectMapProps> = ({
520520 }
521521
522522 return (
523- < div className = { className } >
523+ < div className = { cn ( "min-w-0 overflow-hidden" , className ) } >
524524 { invalidCount > 0 && (
525525 < div className = "mb-2 p-2 text-sm text-yellow-800 bg-yellow-50 border border-yellow-200 rounded" >
526526 { `${ invalidCount } record${ invalidCount !== 1 ? 's' : '' } with missing or invalid coordinates excluded from the map.` }
0 commit comments