Skip to content

Commit 0021968

Browse files
committed
handle colspans for stop times
1 parent 3c1c1d2 commit 0021968

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/js/map_stops.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,19 @@ function display_stop_times(stop_routes) {
193193
}
194194
}
195195
for(let i = route.times.length; i < 3; i++) {
196-
const td = document.createElement('td');
197-
td.textContent = '-';
198-
td.setAttribute('colspan', '2');
199-
row.appendChild(td);
196+
{
197+
const td = document.createElement('td');
198+
td.textContent = '-';
199+
td.setAttribute('colspan', '2');
200+
td.classList.add('d-none', 'd-md-table-cell');
201+
row.appendChild(td);
202+
}
203+
{
204+
const td = document.createElement('td');
205+
td.textContent = '-';
206+
td.classList.add('d-table-cell', 'd-md-none');
207+
row.appendChild(td);
208+
}
200209
}
201210
}
202211
tbody.appendChild(row);

0 commit comments

Comments
 (0)