This commit is contained in:
Sidharth Vinod
2021-05-17 03:24:56 +05:30
parent 734d5a5e5c
commit 627f21bd20
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
class="text cursor-pointer font-semibold min-w-16 w-auto px-2 py-1 -mb-4 rounded-t block leading-normal {activeTabID ===
tab.id
? 'text-indigo-500 bg-white border-white'
: 'text-white bg-indigo-500 border-indigo-500'}"
: 'text-white bg-indigo-500 border-indigo-500 hover:bg-indigo-600'}"
on:click|stopPropagation={() => toggleTabs(tab)}>
{tab.title}
</div>
+7 -5
View File
@@ -80,16 +80,18 @@
<div class="flex-1">
<div class="flex flex-col">
<span>{name}</span>
<span class="text-gray-400 text-sm">{relativeTime(time)}</span>
</div>
</div>
<div class="flex gap-2 content-center">
<button class="rounded px-2 bg-green-200" on:click={() => restoreHistory(state)}
>Restore</button>
<button class="rounded px-2 bg-red-200" on:click={() => clearHistory(time)}
>Delete</button>
<button
class="rounded px-2 w-24 bg-green-200 hover:bg-green-300"
on:click={() => restoreHistory(state)}>Restore</button>
<button
class="rounded px-2 w-24 bg-red-200 hover:bg-red-300"
on:click={() => clearHistory(time)}>Delete</button>
</div>
</div>
<span class="text-gray-400 text-sm">{relativeTime(time)}</span>
</li>
{/each}
</ul>