mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
refactor(web): conditional colors for slow rows
This commit is contained in:
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()} />
|
||||
|
||||
Reference in new issue
Block a user