fix(geoportal): use w-full h-full on map container (MapLibre overrides position to relative)
MapLibre sets position:relative on its container element, which overrides our absolute inset-0 and causes height to collapse to 0. Using w-full h-full instead works because the parent (absolute inset-0) has a definite computed height from positioning. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -571,7 +571,7 @@ export const MapViewer = forwardRef<MapViewerHandle, MapViewerProps>(
|
||||
|
||||
return (
|
||||
<div className={cn("absolute inset-0", className)}>
|
||||
<div ref={containerRef} className="absolute inset-0" />
|
||||
<div ref={containerRef} className="w-full h-full" />
|
||||
{!mapReady && (
|
||||
<div className="absolute inset-0 flex items-center justify-center bg-muted/50">
|
||||
<p className="text-sm text-muted-foreground">Se incarca harta...</p>
|
||||
|
||||
Reference in New Issue
Block a user