Skip to content

Commit

Permalink
chore: suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruioliveira02 committed Feb 7, 2025
1 parent beb8185 commit 08d0a45
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions lib/safira_web/live/app/wheel_live/components/awards.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ defmodule SafiraWeb.App.WheelLive.Components.Awards do
def awards(assigns) do
~H"""
<table class="w-full">
<tr class="border-b-2">
<th class="px-4 text-lg text-left">Name</th>
<th class="px-4 text-lg text-center">Stock</th>
<th class="px-4 text-lg text-center">Max. / Attendee</th>
<th class="px-4 text-lg text-right">Probability</th>
<tr class="border-b-2 text-md sm:text-lg">
<th class="pr-2 text-left">Name</th>
<th class="px-4 sm:block hidden text-center">Stock</th>
<th class="px-4 text-center">Max. / Attendee</th>
<th class="pl-2 text-right">Probability</th>
</tr>
<%= for entry <- @entries do %>
<tr>
<td class="px-4 py-2 font-bold text-left"><%= entry_name(entry) %></td>
<td class="px-4 py-2 font-bold text-center"><%= entry_stock(entry) %></td>
<tr class="text-sm sm:text-md">
<td class="pr-2 py-2 font-bold text-left"><%= entry_name(entry) %></td>
<td class="px-4 sm:block hidden py-2 font-bold text-center"><%= entry_stock(entry) %></td>
<td class="px-4 py-2 text-center"><%= entry.max_per_attendee %></td>
<td class="px-4 py-2 text-accent font-bold text-right">
<td class="pl-2 py-2 text-accent font-bold text-right">
<%= format_probability(entry.probability) %>
</td>
</tr>
Expand Down
14 changes: 7 additions & 7 deletions lib/safira_web/live/app/wheel_live/components/latest_wins.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ defmodule SafiraWeb.App.WheelLive.Components.LatestWins do
def latest_wins(assigns) do
~H"""
<table class="w-full">
<tr class="border-b-2">
<th class="px-4 text-lg text-left"><%= gettext("Attendee") %></th>
<th class="px-4 text-lg text-center"><%= gettext("Prize") %></th>
<th class="px-4 text-lg text-right"><%= gettext("When") %></th>
<tr class="border-b-2 text-md sm:text-lg">
<th class="pr-2 text-left"><%= gettext("Attendee") %></th>
<th class="px-4 text-center"><%= gettext("Prize") %></th>
<th class="pl-2 text-right"><%= gettext("When") %></th>
</tr>
<%= for entry <- @entries do %>
<tr>
<td class="px-4 py-2 font-bold text-left"><%= entry.attendee.user.name %></td>
<tr class="text-sm sm:text-md">
<td class="pr-2 py-2 font-bold text-left"><%= entry.attendee.user.name %></td>
<td class="px-4 py-2 text-center"><%= entry_name(entry) %></td>
<td class="px-4 py-2 text-accent font-bold text-right">
<td class="pl-2 py-2 text-accent font-bold text-right">
<%= Timex.from_now(entry.inserted_at) %>
</td>
</tr>
Expand Down

0 comments on commit 08d0a45

Please sign in to comment.