refactor(web): conditional colors for slow rows

This commit is contained in:
Luke committed 2023-03-24 21:46:12 +01:00
1 parent e2c4841368
commit 8743dd1523
2 files changed
+20 -2

No files matched your search

@@ -60,8 +60,9 @@
<Subscribe attrs={cell.attrs()} let:attrs>
<td
{...attrs}
class={`${
cell.id === 'executionTime' && 'text-center'
class={`${cell.id === 'executionTime' && 'text-center'} ${
// @ts-ignore - missing `original` prop on row object
row.original.slow && 'text-yellow-500'
} p-2 bg-dark-700 border-b-[0px] border-dark-400 truncate max-w-[200px]`}
>
<Render of={cell.render()} />