fix: clamp max-speed label at edges + move trip location next to time
- placeMaxTick() clamps the label so it stays within the scrubber instead of overlapping the time/speed readouts when max speed is near an edge - give the scrubber row more bottom margin (mb-3) so the tick label clears the readout row below - move the trip location readout directly under the timestamp (left side), removing the separate bottom line
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
data-tile-attrib="© <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors © <a href='https://carto.com/attributions'>CARTO</a>"
|
||||
data-min-zoom="3" data-max-zoom="19"></div>
|
||||
<div id="trip-timeline" class="border-top p-3" hidden>
|
||||
<div class="d-flex align-items-center gap-3 mb-2">
|
||||
<div class="d-flex align-items-center gap-3 mb-3">
|
||||
<button id="trip-play" class="btn btn-primary btn-sm" type="button" aria-label="Play">
|
||||
<i class="fas fa-play" aria-hidden="true"></i>
|
||||
</button>
|
||||
@@ -81,13 +81,15 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex flex-wrap justify-content-between gap-2 small mt-2">
|
||||
<strong id="trip-replay-time"></strong>
|
||||
<div class="min-w-0">
|
||||
<strong id="trip-replay-time" class="d-block"></strong>
|
||||
<span id="trip-replay-location" class="text-muted" style="font-size:0.75rem;"></span>
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<span id="trip-replay-speed" class="text-muted d-block"></span>
|
||||
<span id="trip-replay-odometer" class="text-muted d-block" style="font-size:0.75rem;"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="trip-replay-location" class="text-muted mt-1" style="font-size:0.75rem;min-height:1rem"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user