From 3aad05e2a6dda68441188b873ab04a8330832f14 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 21 May 2022 16:30:50 -0700 Subject: [PATCH] Clean up hover areas --- web/components/contract/contract-card.tsx | 30 +++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index bb19aad4..93e81393 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -87,19 +87,17 @@ export function ContractCard(props: { const prob = getProb(contract) const color = getColor(contract) - const marketClosed = (contract.closeTime || Infinity) < Date.now() - const showTopBar = prob >= 0.5 || marketClosed return (
- - + +

- + - +

@@ -169,15 +168,16 @@ export function ContractCard(props: {
{ + className="peer absolute bottom-0 left-0 right-0 rounded-br-lg hover:bg-gray-400 hover:bg-opacity-10" + style={{ height: 'calc(50% - 0.5rem)' }} + onClick={() => { // console.log('e2', e) }} >
{contract.createdTime % 3 == 2 ? ( @@ -249,7 +249,7 @@ function FreeResponseTopAnswer(props: { truncate: 'short' | 'long' | 'none' className?: string }) { - const { contract, truncate, className } = props + const { contract, truncate } = props const { resolution } = contract const topAnswer = getTopAnswer(contract)