Skip to content

Commit 3c9897f

Browse files
committed
add a little razzle dazzle to the authorizing/actor buttons
1 parent ddbdf1f commit 3c9897f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lib/ash_admin/components/top_nav/actor_select.ex

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,23 @@ defmodule AshAdmin.Components.TopNav.ActorSelect do
1818

1919
def actor_select(assigns) do
2020
~H"""
21-
<div id="actor-hook" class="flex items-center mr-5 text-white" phx-hook="Actor">
21+
<div id="actor-hook" class="flex items-center gap-4 mr-5 text-white" phx-hook="Actor">
2222
<div>
2323
<span>
24-
<button phx-click={@toggle_authorizing} type="button">
24+
<button
25+
class="inline-flex items-center rounded-md bg-gray-50 px-2 py-1 mx-1 my-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10"
26+
phx-click={@toggle_authorizing}
27+
type="button"
28+
>
2529
<span :if={@authorizing}>Authorizing</span>
2630
<span :if={!@authorizing}>Not Authorizing</span>
2731
</button>
28-
<button :if={@actor} phx-click={@toggle_actor_paused} type="button">
32+
<button
33+
:if={@actor}
34+
class="inline-flex items-center rounded-md bg-gray-50 px-2 py-1 mx-1 my-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10"
35+
phx-click={@toggle_actor_paused}
36+
type="button"
37+
>
2938
<span :if={@actor_paused}>Actor Paused</span>
3039
<span :if={!@actor_paused}>Actor Active</span>
3140
</button>

0 commit comments

Comments
 (0)