Skip to content

Commit

Permalink
chore: adjust hover effect in card
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Dec 16, 2024
1 parent 7465db0 commit 0da7cbd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
6 changes: 1 addition & 5 deletions web/src/components/DisputeView/DisputeCardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ const StyledCard = styled(Card)`
height: 100%;
max-height: 335px;
min-height: 290px;
&:hover {
background-color: ${({ theme }) => theme.lightGrey}BB;
}
`;

const CardContainer = styled.div`
Expand Down Expand Up @@ -62,7 +58,7 @@ interface IDisputeCardView {
const DisputeCardView: React.FC<IDisputeCardView> = ({ isLoading, ...props }) => {
return (
<Link to={`/cases/${props?.disputeID?.toString()}`}>
<StyledCard>
<StyledCard hover>
<PeriodBanner id={parseInt(props?.disputeID)} period={props?.period} />
<CardContainer>
{isLoading ? <StyledCaseCardTitleSkeleton /> : <TruncatedTitle text={props?.title} maxLength={100} />}
Expand Down
6 changes: 1 addition & 5 deletions web/src/components/DisputeView/DisputeListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ const StyledListItem = styled(Card)`
flex-grow: 1;
width: 100%;
height: 82px;
&:hover {
background-color: ${({ theme }) => theme.lightGrey}BB;
}
`;

const ListContainer = styled.div`
Expand Down Expand Up @@ -65,7 +61,7 @@ const DisputeListView: React.FC<IDisputeListView> = (props) => {
const { isDisconnected } = useAccount();
return (
<Link to={`/cases/${props?.disputeID?.toString()}`}>
<StyledListItem>
<StyledListItem hover>
<PeriodBanner isCard={false} id={parseInt(props?.disputeID ?? "0")} period={props.period} />
<ListContainer>
<TitleContainer isLabel={!isDisconnected}>
Expand Down
2 changes: 0 additions & 2 deletions web/src/pages/Cases/CaseDetails/Appeal/OptionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const StyledCard = styled(Card)`
padding: 24px;
&:hover {
background-color: ${({ theme }) => theme.lightGrey}BB;
cursor: pointer;
box-shadow: none;
}
`;

Expand Down

0 comments on commit 0da7cbd

Please sign in to comment.