Fix stats layout

This commit is contained in:
Eugene Burmakin 2025-10-13 12:45:42 +02:00
parent 99281317d7
commit aff44d6669
3 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -77,8 +77,9 @@
<li> <li>
<% if current_user.in_family? %> <% if current_user.in_family? %>
<div data-controller="family-navbar-indicator" <div data-controller="family-navbar-indicator"
data-family-navbar-indicator-enabled-value="<%= current_user.family_sharing_enabled? %>"> data-family-navbar-indicator-enabled-value="<%= current_user.family_sharing_enabled? %>"
<%= link_to family_path, class: "mx-1 #{active_class?(family_path)} flex items-center space-x-2" do %> class="<%= active_class?(family_path) %>">
<%= link_to family_path, class: "mx-1 flex items-center space-x-2" do %>
<span>Family<sup>α</sup></span> <span>Family<sup>α</sup></span>
<div data-family-navbar-indicator-target="indicator" <div data-family-navbar-indicator-target="indicator"
class="w-2 h-2 <%= current_user.family_sharing_enabled? ? 'bg-green-500 animate-pulse' : 'bg-gray-400' %> rounded-full" class="w-2 h-2 <%= current_user.family_sharing_enabled? ? 'bg-green-500 animate-pulse' : 'bg-gray-400' %> rounded-full"

View file

@ -16,10 +16,9 @@
<div class="stat-title">Geopoints tracked</div> <div class="stat-title">Geopoints tracked</div>
</div> </div>
<% if DawarichSettings.reverse_geocoding_enabled? %> <% if DawarichSettings.reverse_geocoding_enabled? %>
<%= render 'stats/reverse_geocoding_stats' %> <%= render 'stats/reverse_geocoding_stats' %>
<% end %> <% end %>
</div>
<div class='text-xs text-gray-500 text-center mt-5'> <div class='text-xs text-gray-500 text-center mt-5'>
All stats data above except for total distance and number of geopoints tracked is being updated daily All stats data above except for total distance and number of geopoints tracked is being updated daily