Skip to content

Commit

Permalink
ui improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Jan 31, 2024
1 parent 0e42e81 commit 3ba8ed5
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions app/components/map/BusCallout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,27 @@ interface Props {
const BusCallout: React.FC<Props> = ({ directionName, fullPercentage, amenities, tintColor, routeName, busId }) => {
return (
<Callout>
<View style={{ width: 160 }}>
<View style={{ flexDirection: 'row', justifyContent: 'center', alignItems: 'center', marginBottom: 4 }}>
<BusIcon name={routeName} color={tintColor} isCallout={true} />
<Text style={{paddingLeft: 6, color: tintColor, fontWeight: "600"}}>{busId}</Text>
<View style={{ width: 165 }}>
<View style={{
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
marginBottom: 4
}}>
<View style={{
flexDirection: "row",
justifyContent: 'center',
alignItems: 'center',
backgroundColor: "#efefef",
marginRight: 8,
borderRadius: 4,
}}>
<BusIcon name={routeName} color={tintColor} isCallout={true} />
<Text style={{fontSize: 12, marginLeft: 6, marginRight: 4, color: "grey"}}>
<Text style={{fontWeight: "bold" }}>ID: </Text>
<Text>{busId}</Text>
</Text>
</View>
<View style={{ flex: 1 }} />
<AmenityRow amenities={amenities} color={"gray"} size={20} />
</View>
Expand Down

0 comments on commit 3ba8ed5

Please sign in to comment.