Skip to content
Snippets Groups Projects
Commit ce654023 authored by Lukas's avatar Lukas
Browse files

Fix witnesses table hover bug

parent 32c5fc0d
No related branches found
No related tags found
No related merge requests found
...@@ -198,11 +198,7 @@ export default function Witnesses() { ...@@ -198,11 +198,7 @@ export default function Witnesses() {
<TableRow <TableRow
key={index} key={index}
className={cn( className={cn(
`${ `${index % 2 === 0 ? "bg-rowEven" : "bg-rowOdd"}`,
index % 2 === 0
? "bg-rowEven dark:bg-rowEven"
: "bg-rowOdd dark:bg-rowOdd"
}`,
{ {
"line-through": "line-through":
singleWitness.signing_key === config.inactiveWitnessKey, singleWitness.signing_key === config.inactiveWitnessKey,
...@@ -211,20 +207,10 @@ export default function Witnesses() { ...@@ -211,20 +207,10 @@ export default function Witnesses() {
)} )}
data-testid="witnesses-table-row" data-testid="witnesses-table-row"
> >
<TableCell <TableCell className="sticky left-0 min-w-[20px] bg-inherit">
className={cn("sticky left-0 min-w-[20px]", {
"bg-rowEven dark:bg-rowEven md:bg-inherit": index % 2 === 0,
"bg-rowOdd dark:bg-rowOdd md:bg-inherit": index % 2 !== 0,
})}
>
{singleWitness.rank} {singleWitness.rank}
</TableCell> </TableCell>
<TableCell <TableCell className="text-explorer-turquoise sticky left-16 bg-inherit">
className={cn("text-explorer-turquoise sticky left-16", {
"bg-rowEven dark:bg-rowEven md:bg-inherit": index % 2 === 0,
"bg-rowOdd dark:bg-rowOdd md:bg-inherit": index % 2 !== 0,
})}
>
<div className="flex justify-between"> <div className="flex justify-between">
<Link <Link
href={`/@${singleWitness.witness_name}`} href={`/@${singleWitness.witness_name}`}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment