From 65aa88e926b93b9bdea3ce6df8b386d393a84b52 Mon Sep 17 00:00:00 2001 From: Harshad Sharma Date: Sun, 19 May 2024 09:02:26 +0530 Subject: [PATCH] UI tweaks --- lib/freedive_web/live/home_live.ex | 2 +- lib/freedive_web/live/service_live.ex | 12 ++++++------ lib/liliform/page.ex | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/freedive_web/live/home_live.ex b/lib/freedive_web/live/home_live.ex index c6aebdb..9775dd0 100644 --- a/lib/freedive_web/live/home_live.ex +++ b/lib/freedive_web/live/home_live.ex @@ -98,7 +98,7 @@ defmodule FreediveWeb.HomeLive.Components do <.icon for={item.icon} color="auto" aria-hidden="true" /> -
Nav: <%= item.name %>
+
<%= item.name %>
<% end %> """ diff --git a/lib/freedive_web/live/service_live.ex b/lib/freedive_web/live/service_live.ex index 2b3923d..6bcf1a3 100644 --- a/lib/freedive_web/live/service_live.ex +++ b/lib/freedive_web/live/service_live.ex @@ -197,14 +197,14 @@ defmodule FreediveWeb.ServiceLive.Components do def service_preview(assigns) do ~H""" <.panel_block - class={"#{if @selected_item != nil and @selected_item.name == @item.name, do: "pt-2 has-background-info-light", else: "pt-2"}"} + class={"#{if @selected_item != nil and @selected_item.name == @item.name, do: "pt-3 has-background-info-light", else: "pt-3"}"} phx-click="tap" phx-value-name={@item.name} > - <.icon_raw for={@item.icon} color="auto" size="1.8rem" aria-hidden="true" /> + <.icon_raw for={@item.icon} color="auto" size="1.5rem" aria-hidden="true" /> - + <%= @item.name %> @@ -226,9 +226,9 @@ defmodule FreediveWeb.ServiceLive.Components do ~H""" <.panel_block_div> <%= if @selected_item.running do %> - <.icon_raw for="power" color="lightgreen" size="2rem" class="ml-2 mr-5" aria-hidden="true" /> + <.icon_raw for="power" color="lightgreen" size="1.5rem" class="ml-2 mr-5" aria-hidden="true" /> <% else %> - <.icon_raw for="power" color="gray" size="2rem" class="ml-2 mr-5" aria-hidden="true" /> + <.icon_raw for="power" color="gray" size="1.5rem" class="ml-2 mr-5" aria-hidden="true" /> <% end %>
<%= if @selected_item.running do %> @@ -270,7 +270,7 @@ defmodule FreediveWeb.ServiceLive.Components do <.icon_raw for="inspection-panel" color="auto" - size="2rem" + size="1.5rem" class="ml-1 mr-5" aria-hidden="true" /> diff --git a/lib/liliform/page.ex b/lib/liliform/page.ex index 2093a16..7275d6e 100644 --- a/lib/liliform/page.ex +++ b/lib/liliform/page.ex @@ -37,7 +37,7 @@ defmodule Liliform.Page do phx-click="filter" phx-value-key={filter.key} > - + <%= filter.title %>