Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix conditional alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
LindseySaari committed Feb 15, 2022
1 parent c73b341 commit 9ff0072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/audits/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
<%= audit.created_at %>
</td>
<td class="px-6 py-4 max-w-7xl text-sm font-medium text-gray-900">
<% if audit.object.present? %>
<% if audit.object.present? %>
<div data-controller="toggle">
<button data-toggle-target="item" data-action="click->toggle#toggleTargets" data-toggle-target="sidebar-1" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-900 hover:bg-blue-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" id="show-button">Show</button>
<button data-toggle-target="item" data-action="click->toggle#toggleTargets" data-toggle-target="sidebar-1" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-900 hover:bg-blue-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 hidden">Hide</button>
<br/><br/>
<span data-toggle-target="item" class="hidden text-left"><%= audit.object %></span>
</div>
<% end %>
<% end %>
</td>
</tr>
<% end %>
Expand Down

0 comments on commit 9ff0072

Please sign in to comment.