Skip to content

Commit

Permalink
fix(web): drug card hover area
Browse files Browse the repository at this point in the history
  • Loading branch information
broody committed Sep 15, 2023
1 parent a5d96a7 commit 4f45fdc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
32 changes: 20 additions & 12 deletions web/src/pages/[gameId]/[locationSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
StyleProps,
useDisclosure,
useBreakpointValue,
Flex,
} from "@chakra-ui/react";
import Layout from "@/components/Layout";
import { useRouter } from "next/router";
Expand Down Expand Up @@ -120,24 +121,31 @@ export default function Location() {
{drugInfo.name}
</CardHeader>
<CardBody>
<HStack w="full" justify="center" position="relative" m="2px">
<HStack
<HStack w="full" justify="center">
<Flex
as={motion.div}
initial={{ opacity: 0 }}
whileHover={{ opacity: 1 }}
w="full"
p="20px"
gap="10px"
p="2px"
align="center"
boxSize="full"
position="absolute"
bgColor="neon.900"
pointerEvents={["none", "auto"]}
>
<BuySellBtns
canBuy={canBuy}
canSell={canSell}
drugSlug={drugInfo.slug}
/>
</HStack>
<HStack
h="100px"
w="full"
p="20px"
gap="10px"
bgColor="neon.900"
>
<BuySellBtns
canBuy={canBuy}
canSell={canSell}
drugSlug={drugInfo.slug}
/>
</HStack>
</Flex>
{drugInfo.icon({})}
</HStack>
</CardBody>
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Home() {
setIsGated(window.location.host === "rollyourown.preview.cartridge.gg"),
[],
);

return (
<Layout CustomLeftPanel={HomeLeftPanel}>
<VStack boxSize="full" gap="10px" justify="center">
Expand Down

1 comment on commit 4f45fdc

@vercel
Copy link

@vercel vercel bot commented on 4f45fdc Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rollyourown – ./

rollyourown-git-main.preview.cartridge.gg
rollyourown.preview.cartridge.gg

Please sign in to comment.