From ba9411161d43555bbbc711a1a4e6917e5c35c9a3 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 21 May 2022 15:34:18 -0700 Subject: [PATCH] Set correct hover states the arrows --- web/components/contract/contract-card.tsx | 52 ++++++++++++++++------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index 8e85c5d3..aab63ab0 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -94,16 +94,12 @@ export function ContractCard(props: {
- - - - - +

+ + + - + +

{ + // console.log('e', e) + }} + >
{contract.createdTime % 3 == 0 ? ( ) : ( - + )} {outcomeType === 'BINARY' && ( @@ -157,13 +165,25 @@ export function ContractCard(props: { /> )} - {contract.createdTime % 3 == 2 ? ( - - ) : ( - - )} +
+
{ + // console.log('e2', e) + }} + >
+ {/* Note: Something about rotate-180 screws with the hitbox. Rotate the SVG instead. */} + {contract.createdTime % 3 == 2 ? ( + + ) : ( + + )} +