Skip to content

Commit 05077f8

Browse files
committed
fix(alerts): fix css for stop popup to prevent overflow issues
1 parent 7aae916 commit 05077f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/gtfs/components/StopMarker.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ export default class StopMarker extends Component<Props> {
3737
<strong>
3838
NOTE: Stop is parent station to {stop.child_stops.length} stop(s):
3939
</strong>
40-
<ul style={{paddingLeft: '15px'}}>
40+
<ul style={{
41+
paddingLeft: '15px',
42+
// Ensure that list does not become too long for popup to display
43+
// properly.
44+
maxHeight: '100px',
45+
overflowY: 'scroll'
46+
}}>
4147
{stop.child_stops.map((s, i) =>
4248
<li key={i}>
4349
{s.stop_name} ({s.stop_code ? s.stop_code : s.stop_id})

0 commit comments

Comments
 (0)