Skip to content

Commit

Permalink
fix: show announcement page padding
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCoelho2003 committed Sep 11, 2024
1 parent 1c8defc commit 57d689d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/atomic_web/live/announcement_live/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<.announcement announcement={@announcement} />
</.link>
</div>
</div>

<%= if @has_permissions? do %>
<.link patch={Routes.announcement_edit_path(@socket, :edit, @announcement.organization, @announcement)} class="px-2 button">
<div type="button" class="inline-flex justify-center py-2 px-4 w-fit text-sm font-medium text-zinc-700 bg-white rounded-md border border-zinc-300 shadow-sm hover:bg-zinc-50" id="sort-menu-button" aria-expanded="false" aria-haspopup="true">
<.icon name={:pencil} solid class="mr-3 w-5 h-5 text-zinc-400" /> Edit
</div>
</.link>
<% end %>
<%= if @has_permissions? do %>
<.link patch={Routes.announcement_edit_path(@socket, :edit, @announcement.organization, @announcement)} class="px-4 button">
<div type="button" class="inline-flex justify-center py-2 px-4 w-fit text-sm font-medium text-zinc-700 bg-white rounded-md border border-zinc-300 shadow-sm hover:bg-zinc-50" id="sort-menu-button" aria-expanded="false" aria-haspopup="true">
<.icon name={:pencil} solid class="mr-3 w-5 h-5 text-zinc-400" /> Edit
</div>
</.link>
<% end %>
</div>

0 comments on commit 57d689d

Please sign in to comment.