Skip to content

Commit

Permalink
Update style
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad committed Jan 18, 2024
1 parent 58d5a93 commit a74af9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/map/map-raw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const MapRaw: FC<{
...placeMarkerProps
}) => (
<Marker
zIndexOffset={zIndexOffset}
zIndexOffset={zIndexOffset ?? 0}
key={`${location.lat}-${location.lng}-${placeId}`}
position={location}
icon={divIcon({
Expand Down
15 changes: 11 additions & 4 deletions src/components/map/place-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const PlaceMarker: FC<PlaceMarkerProps> = ({
animated,
},
className,
'relative box-border h-3 w-3 rounded-full border shadow',
'group relative box-border h-3 w-3 rounded-full border shadow',
'border-gray-800 bg-gray-700',
colorClassName,
'border-white'
Expand All @@ -72,13 +72,20 @@ export const PlaceMarker: FC<PlaceMarkerProps> = ({
animated,
},
className,
'relative inline-block rounded-full border p-[3px] shadow',
'group relative inline-block rounded-full border p-[3px] shadow',
'border-gray-800 bg-gray-700',
colorClassName
)}
>
{showName && name && (
<div className="absolute bottom-full left-1/2 -translate-x-1/2 -translate-y-2 text-nowrap rounded-xl bg-white px-4 py-1 text-xs text-black shadow-md">
{name && (
<div
className={cn(
'absolute bottom-full left-1/2 -translate-x-1/2 -translate-y-1',
'pointer-events-none rounded-full border border-stone-600 bg-white px-2 py-0.5 text-xs text-black shadow-md',
'text-nowrap',
{ 'hidden group-hover:block': !showName }
)}
>
{name}
<svg
className="absolute left-0 top-full h-2 w-full text-white"
Expand Down

0 comments on commit a74af9d

Please sign in to comment.