Fix margins on some pages

This commit is contained in:
Eugene Burmakin 2024-11-28 15:54:36 +01:00
parent 782aeb89af
commit f2869347bc
17 changed files with 37 additions and 29 deletions

View file

@ -39,6 +39,8 @@ class Immich::RequestPhotos
if items.blank?
Rails.logger.debug('==== IMMICH RESPONSE WITH NO ITEMS ====')
Rails.logger.debug("START_DATE: #{start_date}")
Rails.logger.debug("END_DATE: #{end_date}")
Rails.logger.debug(response)
Rails.logger.debug('==== IMMICH RESPONSE WITH NO ITEMS ====')

View file

@ -1,7 +1,7 @@
<% content_for :title, "Exports" %>
<div class="w-full">
<div class="flex justify-center my-5">
<div class="w-full my-5">
<div class="flex justify-center">
<h1 class="font-bold text-4xl">Exports</h1>
</div>

View file

@ -1,4 +1,4 @@
<div class="w-full mx-auto">
<div class="w-full mx-auto my-5">
<div class="flex justify-between items-center mt-5 mb-5">
<div class="hero h-fit bg-base-200 py-20" style="background-image: url(<%= '/images/bg-image.jpg' %>);">
<div class="hero-content text-center">

View file

@ -1,7 +1,7 @@
<% content_for :title, 'Imports' %>
<div class="w-full">
<div class="flex justify-between items-center mb-3">
<div class="w-full my-5">
<div class="flex justify-between items-center">
<h1 class="font-bold text-4xl">Imports</h1>
<%= link_to "New import", new_import_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>

View file

@ -1,6 +1,6 @@
<% content_for :title, 'Map' %>
<div class="flex flex-col lg:flex-row lg:space-x-4 mt-8 w-full">
<div class="flex flex-col lg:flex-row lg:space-x-4 my-5 w-full">
<div class='w-full lg:w-5/6'>
<div class="flex flex-col space-y-4 mb-4 w-full">
<%= form_with url: map_path(import_id: params[:import_id]), method: :get do |f| %>

View file

@ -1,7 +1,7 @@
<% content_for :title, "Places" %>
<div class="w-full">
<div class="flex justify-center my-5">
<div class="w-full my-5">
<div class="flex justify-center">
<h1 class="font-bold text-4xl">Places</h1>
</div>

View file

@ -1,6 +1,6 @@
<% content_for :title, 'Points' %>
<div class="w-full">
<div class="w-full my-5">
<%= form_with url: points_path(import_id: params[:import_id]), data: { turbo_method: :get }, method: :get do |f| %>
<div class="flex flex-col md:flex-row md:space-x-4 md:items-end">
<div class="w-full md:w-2/12">

View file

@ -1,6 +1,6 @@
<% content_for :title, "Background jobs" %>
<div class="min-h-content w-full">
<div class="min-h-content w-full my-5">
<%= render 'settings/navigation' %>
<div class="flex justify-between items-center mt-5">

View file

@ -1,6 +1,6 @@
<% content_for :title, 'Settings' %>
<div class="min-h-content w-full">
<div class="min-h-content w-full my-5">
<%= render 'settings/navigation' %>
<div class="flex flex-col lg:flex-row w-full my-10 space-x-4">

View file

@ -8,9 +8,9 @@
<li><%= link_to 'Map', map_url, class: "#{active_class?(map_url)}" %></li>
<li><%= link_to 'Points', points_url, class: "#{active_class?(points_url)}" %></li>
<li><%= link_to 'Stats', stats_url, class: "#{active_class?(stats_url)}" %></li>
<li><%= link_to 'Visits<sup>β</sup>'.html_safe, visits_url(status: :confirmed), class: "#{active_class?(visits_url)}" %></li>
<li><%= link_to 'Places<sup>β</sup>'.html_safe, places_url, class: "#{active_class?(places_url)}" %></li>
<li><%= link_to 'Trips<sup>β</sup>'.html_safe, trips_url, class: "#{active_class?(trips_url)}" %></li>
<li><%= link_to 'Visits<sup>α</sup>'.html_safe, visits_url(status: :confirmed), class: "#{active_class?(visits_url)}" %></li>
<li><%= link_to 'Places<sup>α</sup>'.html_safe, places_url, class: "#{active_class?(places_url)}" %></li>
<li><%= link_to 'Trips<sup>α</sup>'.html_safe, trips_url, class: "#{active_class?(trips_url)}" %></li>
<li><%= link_to 'Imports', imports_url, class: "#{active_class?(imports_url)}" %></li>
<li><%= link_to 'Exports', exports_url, class: "#{active_class?(exports_url)}" %></li>
</ul>
@ -45,9 +45,9 @@
<li><%= link_to 'Map', map_url, class: "#{active_class?(map_url)}" %></li>
<li><%= link_to 'Points', points_url, class: "#{active_class?(points_url)}" %></li>
<li><%= link_to 'Stats', stats_url, class: "#{active_class?(stats_url)}" %></li>
<li><%= link_to 'Visits<sup>β</sup>'.html_safe, visits_url(status: :confirmed), class: "#{active_class?(visits_url)}" %></li>
<li><%= link_to 'Places<sup>β</sup>'.html_safe, places_url, class: "#{active_class?(places_url)}" %></li>
<li><%= link_to 'Trips', trips_url, class: "#{active_class?(trips_url)}" %></li>
<li><%= link_to 'Visits<sup>α</sup>'.html_safe, visits_url(status: :confirmed), class: "#{active_class?(visits_url)}" %></li>
<li><%= link_to 'Places<sup>α</sup>'.html_safe, places_url, class: "#{active_class?(places_url)}" %></li>
<li><%= link_to 'Trips<sup>α</sup>'.html_safe, trips_url, class: "#{active_class?(trips_url)}" %></li>
<li><%= link_to 'Imports', imports_url, class: "#{active_class?(imports_url)}" %></li>
<li><%= link_to 'Exports', exports_url, class: "#{active_class?(exports_url)}" %></li>
</ul>

View file

@ -1,6 +1,6 @@
<% content_for :title, 'Statistics' %>
<div class="w-full">
<div class="w-full my-5">
<div class="stats stats-vertical lg:stats-horizontal shadow w-full bg-base-200">
<div class="stat text-center">
<div class="stat-value text-primary">

View file

@ -1,5 +1,5 @@
<% content_for :title, "Statistics for #{@year} year" %>
<div class="w-full">
<div class="w-full my-5">
<%= render partial: 'stats/year', locals: { year: @year, stats: @stats } %>
</div>

View file

@ -1,8 +1,13 @@
<div class="mx-auto md:w-2/3 w-full">
<div class="mx-auto md:w-2/3 w-full my-5">
<h1 class="font-bold text-4xl">Editing trip</h1>
<%= render "form", trip: @trip %>
<%= link_to "Show this trip", @trip, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
<%= link_to "Back to trips", trips_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
<!-- Action Buttons Section -->
<div class="bg-base-100 items-center mt-8 mb-4">
<div class="flex flex-wrap gap-2 justify-center">
<%= link_to "Show this trip", @trip, class: "btn" %>
<%= link_to "Back to trips", trips_path, class: "btn" %>
</div>
</div>
</div>

View file

@ -1,9 +1,9 @@
<% content_for :title, 'Trips' %>
<div class="w-full">
<div class="w-full my-5">
<div id="trips" class="min-w-full">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-bold">Trips</h1>
<h1 class="font-bold text-4xl">Trips</h1>
<%= link_to 'New trip', new_trip_path, class: 'btn btn-primary' %>
</div>

View file

@ -1,6 +1,6 @@
<% content_for :title, 'New trip' %>
<div class="mx-auto md:w-2/3 w-full">
<div class="mx-auto md:w-2/3 w-full my-5">
<h1 class="font-bold text-4xl">New trip</h1>
<%= render "form", trip: @trip %>

View file

@ -1,6 +1,6 @@
<% content_for :title, @trip.name %>
<div class="container mx-auto px-4 py-8 max-w-4xl">
<div class="container mx-auto px-4 py-8 max-w-4xl my-5">
<!-- Header Section -->
<div class="text-center mb-8">
<h1 class="text-4xl font-bold mb-2"><%= @trip.name %></h1>

View file

@ -1,7 +1,8 @@
<div class="w-full">
<% content_for :title, "Visits" %>
<% content_for :title, "Visits" %>
<div class="flex justify-between my-5">
<div class="w-full my-5">
<div class="flex justify-between">
<h1 class="font-bold text-4xl">Visits</h1>
<div role="tablist" class="tabs tabs-boxed">
<%= link_to 'Confirmed', visits_path(status: :confirmed), role: 'tab',