feat(web): add rank indicator
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
<table class="w-full text-left text-sm text-gray-700">
|
||||
<thead class="bg-gray-800 text-xs uppercase text-gray-600">
|
||||
<tr>
|
||||
<th class="px-4 py-3" title="Rank the solver assigned"></th>
|
||||
<th class="px-4 py-3" title="The best words">Word</th>
|
||||
<th
|
||||
class="px-4 py-3 math-header"
|
||||
@@ -61,7 +62,7 @@
|
||||
</thead>
|
||||
|
||||
<tbody class="divide-y divide-gray-500">
|
||||
{#each d.stats as s}
|
||||
{#each d.stats as s, i}
|
||||
<tr
|
||||
class="transition-colors hover:bg-gray-50"
|
||||
onclick={() => {
|
||||
@@ -70,6 +71,7 @@
|
||||
}
|
||||
}}
|
||||
>
|
||||
<td class="px-4 py-3 font-bold">#{i + 1}</td>
|
||||
<td class="px-4 py-3 font-bold">{s.word}</td>
|
||||
<td class="px-4 py-3"
|
||||
>{s.solution_probability.toFixed(3)}</td
|
||||
|
||||
Reference in New Issue
Block a user