Fix the sidebar and the map marker popup

This commit is contained in:
Eugene Burmakin 2024-03-22 22:57:53 +01:00
parent 4af91748f0
commit 2556e2ae70
2 changed files with 4 additions and 4 deletions

View file

@ -27,9 +27,9 @@ export default class extends Controller {
<b>Timestamp:</b> ${this.formatDate(marker[4])}<br>
<b>Latitude:</b> ${marker[0]}<br>
<b>Longitude:</b> ${marker[1]}<br>
<b>Altitude:</b> ${marker[3]}<br>
<b>Velocity:</b> ${marker[5]}<br>
<b>Battery:</b> ${marker[2]}<br>
<b>Altitude:</b> ${marker[3]}m<br>
<b>Velocity:</b> ${marker[5]}km/h<br>
<b>Battery:</b> ${marker[2]}%<br>
`;
}

View file

@ -1,6 +1,6 @@
<%= "#{@distance} km" if @distance %>
<% if @countries_and_cities.any? %>
<% if @countries_and_cities&.any? %>
<% @countries_and_cities.each do |country| %>
<h2 class="text-lg font-semibold"><%= country[:country] %></h2>
<ul>