Skip to content

Commit 78b6446

Browse files
committed
improvements
1 parent 19e3d48 commit 78b6446

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

lib/algora_web/live/contract_live.ex

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,14 @@ defmodule AlgoraWeb.ContractLive do
308308
</.card_content>
309309
</.card>
310310
<.card :if={length(@transactions) > 0}>
311-
<.card_content>
312-
<div class="-mx-6 overflow-x-auto">
313-
<div class="inline-block min-w-full py-2 align-middle">
311+
<.card_header>
312+
<.card_title>
313+
Timeline
314+
</.card_title>
315+
</.card_header>
316+
<.card_content class="pt-0">
317+
<div class="-mx-6 -mt-3.5 overflow-x-auto">
318+
<div class="inline-block min-w-full align-middle">
314319
<table class="min-w-full divide-y divide-border">
315320
<thead>
316321
<tr>
@@ -327,7 +332,14 @@ defmodule AlgoraWeb.ContractLive do
327332
<%= for transaction <- @transactions do %>
328333
<tr class="hover:bg-muted/50">
329334
<td class="whitespace-nowrap px-6 py-4 text-sm">
330-
{Util.timestamp(transaction.inserted_at, @timezone)}
335+
<div :if={@timezone}>
336+
{Util.timestamp(transaction.inserted_at, @timezone)}
337+
</div>
338+
<div
339+
:if={!@timezone}
340+
class="h-[24px] w-[132px] bg-muted animate-pulse rounded-lg"
341+
>
342+
</div>
331343
</td>
332344
<td class="whitespace-nowrap px-6 py-4 text-sm">
333345
{description(transaction)}

0 commit comments

Comments
 (0)