diff --git a/lib/freedive_web/live/service_live.ex b/lib/freedive_web/live/service_live.ex
index 06eda36..b730000 100644
--- a/lib/freedive_web/live/service_live.ex
+++ b/lib/freedive_web/live/service_live.ex
@@ -149,104 +149,88 @@ defmodule FreediveWeb.ServiceLive.Components do
-
- <%= if @selected_item.running do %>
- <.icon for="circle-play" color="green" aria-hidden="true" />
- <% else %>
- <.icon for="circle-stop" color="red" aria-hidden="true" />
- <% end %>
- <%= if @selected_item.enabled do %>
- <.icon for="circle-check" color="green" aria-hidden="true" />
- <% else %>
- <.icon for="circle-x" color="red" aria-hidden="true" />
- <% end %>
-
-
-
-
+ <.panel_block>
+ <%!-- <.icon_raw for={@selected_item.icon} color="auto" size="3rem" class="" aria-hidden="true" /> --%>
+ <.icon_raw for={@selected_item.icon} color="auto" size="3rem" aria-hidden="true" />
+
+ <.title is-4>
+ <%= @selected_item.name %>
+ <%= if @selected_item.running do %>
+ <.icon for="circle-play" color="lightgreen" aria-hidden="true" />
+ <% else %>
+ <.icon for="circle-stop" color="gray" aria-hidden="true" />
+ <% end %>
+ <%= if @selected_item.enabled do %>
+ <.icon for="circle-check" color="lightgreen" aria-hidden="true" />
+ <% else %>
+ <.icon for="circle-x" color="gray" aria-hidden="true" />
+ <% end %>
+
+ <.subtitle>
+ <%= @selected_item.description %>
+
+
+
<%= if Map.has_key?(@selected_item, :log) and @selected_item.log != [] do %>
- <.panel_media>
- <:icon>
- <.icon for="terminal" color="gray" aria-hidden="true" />
-
- <:actions>
+ <.panel_block>
- <%= if @selected_item.running do %>
-
+ <.panel_block_div>
+ <%= if @selected_item.running do %>
+ <.icon_raw for="power" color="lightgreen" size="2rem" 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" />
+ <% end %>
+
+ <%= if @selected_item.running do %>
+
+ Restart
+
+
+ Stop
+
+ <% else %>
+
+ Start
+
+ <% end %>
+
+
+ <%= if @selected_item.commands != [] and @selected_item.commands != nil do %>
+ <.panel_block_div>
+ <.icon_raw for="inspection-panel" color="auto" size="2rem" class="ml-1 mr-5" aria-hidden="true" />
+
+ <%= for command <- @selected_item.commands do %>
- Restart
+ <%= command %>
-
-
-
- Stop
-
-
- <% else %>
-
-
- Start
-
-
<% end %>
-
-
- <%= if @selected_item.commands do %>
- <%= for command <- @selected_item.commands do %>
-
- <%= command %>
-
- <% end %>
- <% end %>
-
+
+ <% end %>
"""
end
@@ -254,18 +238,18 @@ defmodule FreediveWeb.ServiceLive.Components do
~H"""
<%= for {_name, item} <- @items do %>
- <.link
- class={"panel-block pt-1 #{if @selected_item != nil and @selected_item.name == item.name, do: "has-background-info-light"}"}
+ <.panel_block
+ class={"panel-block pt-3 #{if @selected_item != nil and @selected_item.name == item.name, do: "has-background-info-light"}"}
phx-click="tap"
phx-value-name={item.name}
>
-
- <.icon for={item.icon} color="auto" aria-hidden="true" />
-
-
+ <.icon_raw for={item.icon} color="auto" size="1.8rem" aria-hidden="true" />
+ <%!--
--%>
+ <.subtitle class="ml-3">
<%= item.name %>
-
-
+
+ <%!--
--%>
+
<% end %>
"""
diff --git a/lib/liliform/panel.ex b/lib/liliform/panel.ex
index f17d99e..f7d8a62 100644
--- a/lib/liliform/panel.ex
+++ b/lib/liliform/panel.ex
@@ -99,11 +99,11 @@ defmodule Liliform.Panel do
~H"""
- <.media class="is-fullwidth">
+ <.media>
<.media_left>
<%= render_slot(@icon) %>
- <.media_content class="is-fullwidth">
+ <.media_content>
<%= render_slot(@inner_block) %>
<.media_right>