File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import LocationIcon from '../icons/location-icon'
12
12
import { setMainPanelContent , toggleAutoRefresh } from '../../actions/ui'
13
13
import { findStop , findStopTimesForStop } from '../../actions/api'
14
14
import { forgetStop , rememberStop , setLocation } from '../../actions/map'
15
- import { formatDuration , formatStopTime } from '../../util/time'
16
15
import { routeComparator } from '../../util/itinerary'
16
+ import { formatDuration , formatStopTime } from '../../util/time'
17
17
18
18
class StopViewer extends Component {
19
19
state = { }
Original file line number Diff line number Diff line change 3
3
.otp .stop-viewer-header , .otp .trip-viewer-header , .otp .route-viewer-header {
4
4
background-color : # ddd ;
5
5
padding : 12px ;
6
+ position : sticky; /* Ensure header bar sticks to top of scrolling div */
7
+ top : 0px ;
8
+ z-index : 1 ; /* Ensure sticky header stays on top of viewer body */
6
9
}
7
10
8
11
.otp .stop-viewer-body , .otp .trip-viewer-body {
You can’t perform that action at this time.
0 commit comments