Skip to content

Commit

Permalink
fix: Change max width to fix hover (#18189)
Browse files Browse the repository at this point in the history
* fix: Change max width to fix hover

* fix: Change max width to fix hover

prettier fix
  • Loading branch information
zoesteinkamp authored May 22, 2020
1 parent 24ce360 commit 78466ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/shared/components/EventMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ const EventMarker: FC<Props> = ({xScale, xDomain, events, xFormatter}) => {
/>
</div>
{tooltipVisible && trigger.current && (
<BoxTooltip triggerRect={triggerRect} maxWidth={500}>
<BoxTooltip
triggerRect={triggerRect}
maxWidth={formattedEvents[0].message.length * 50}
>
<EventMarkerTooltip events={formattedEvents} />
</BoxTooltip>
)}
Expand Down

0 comments on commit 78466ba

Please sign in to comment.