Skip to content

Commit 651ea08

Browse files
committed
show only 3 departure times on narrow screens
1 parent f048bca commit 651ea08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/map_stops.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ function display_stop_times(stop_routes) {
246246
}
247247
row.appendChild(td);
248248
col_counter += 1;
249+
if(col_counter == 4) {
250+
td.classList.add('d-none', 'd-md-table-cell');
251+
}
249252
}
250253
for(let i = route.times.length; i < 4; i++) {
251254
const td = document.createElement('td');

0 commit comments

Comments
 (0)