Skip to content

Commit

Permalink
wrap stops list on tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
indraneel committed Feb 27, 2024
1 parent 384ec38 commit 7835e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function DataRowLink(props: {
let r_len = routes.length

return (
<div className="w-full flex text-sm">
<div className="w-full flex text-sm flex-wrap">
<dt className="flex-1 pr-2">{label}</dt>
{routes.map((r:string, i:number) => (<dd className="flex underline text-blue-600 hover:text-blue-800 visited:text-purple-600 text-xs" key={i} onClick={()=>setDetailedRoutes({city:city,routeType:route_type,routeServiced:r})}>{i< r_len-1 ? r+',' : r}</dd>)
)}
Expand Down

0 comments on commit 7835e89

Please sign in to comment.