Skip to content

Commit

Permalink
FIX: tool tip width for map (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
duong-se authored Oct 16, 2019
1 parent 4d014a5 commit fd8da36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reapit/elements",
"version": "0.4.28",
"version": "0.4.29",
"description": "A collection of React components and utilities for building apps for Reapit Marketplace",
"main": "dist/index.js",
"umd:main": "dist/elements.umd.production.js",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Map/__tests__/__snapshots__/index.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ exports[`Map renderMap should run correctly 1`] = `
"listeners": Object {},
"notify": [MockFunction notify],
"opts": Object {
"content": "<div id=\\"coordinate-0-0\\">
"content": "<div style=\\"max-width: 200px;\\" id=\\"coordinate-0-0\\">
<div></div>
</div>",
},
Expand Down Expand Up @@ -1275,7 +1275,7 @@ exports[`Map renderMap should run correctly 1`] = `
"listeners": Object {},
"notify": [MockFunction notify],
"opts": Object {
"content": "<div id=\\"coordinate-1-1\\">
"content": "<div style=\\"max-width: 200px;\\" id=\\"coordinate-1-1\\">
<div></div>
</div>",
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const renderMarkers = ({ coordinates, googleMaps, map, markerCallBack })
map
})
const infoWindow = new googleMaps.InfoWindow({
content: `<div id="coordinate-${coordinate.position.lat}-${coordinate.position.lng}">
content: `<div style="max-width: 200px;" id="coordinate-${coordinate.position.lat}-${coordinate.position.lng}">
<div>${combineAddress(coordinate.address)}</div>
</div>`
})
Expand Down

0 comments on commit fd8da36

Please sign in to comment.