-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map tooltip bus #114
Map tooltip bus #114
Conversation
Bug - Open Menu In the Mobile Display hasadna#64
Bug - Open Menu In the Mobile Display hasadna#64
Bug - Open Menu In the Mobile Display hasadna#64
open hasadna#113 issue for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great start!
could you please remove all the styling and formatting components from within the tooltip?
src/api/siriService.ts
Outdated
siriRouteLineRefs: string, | ||
) { | ||
const gtfs_route_promise: SiriRideWithRelatedPydanticModel[] = await SIRI_API.siriRidesListGet({ | ||
limit: 122, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
122?
limit: 122, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol maybe by mistake it should be 1
src/pages/RealtimeMapPage.tsx
Outdated
</Marker> | ||
))} | ||
{positions.map((pos, i) => { | ||
const icon = colorIcon({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
only keep Grid as I see it using in another place in the project
only keep Grid as I see it using in another place in the project
only keep Grid as I see it using in another place in the project
only keep Grid as I see it using in another place in the project
{TEXTS.destination} : | ||
<span>{siriRide && siriRide!.gtfsRouteRouteLongName?.split('<->')[1]}</span> | ||
</h4> | ||
<h4 style={{ textAlign: 'start' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please try to avoid inline CSS 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
there is another place you use sx
anyway I added scss file for it
<Grid container display="flex" direction="row-reverse" justifyContent="space-between"> | ||
<Grid item xs={4}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's avoid abusing the grid system - it's not necessary here. we can apply CSS. it can be on seperate PR
🥳 🎈 |
Description
resolve #84
add a nice tooltip with info about the bus.
with an option to see the old JSON .
screenshots
with style card
on mobile
Desktop
with old json