Merge pull request 'Compact map padding amended' (#5) from fix-map-padding into main
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
@@ -659,7 +659,7 @@ export default defineComponent({
|
||||
|
||||
const fitBounds = (): void => {
|
||||
if (!props.flights.length) return
|
||||
const padding = props.compact ? 25 : 60
|
||||
const padding = props.compact ? 40 : 60
|
||||
|
||||
const lngs = props.flights.flatMap(f => [f.departure_airport.longitude_deg, f.arrival_airport.longitude_deg])
|
||||
const lats = props.flights.flatMap(f => [f.departure_airport.latitude_deg, f.arrival_airport.latitude_deg])
|
||||
|
||||
Reference in New Issue
Block a user