Skip to content

Commit

Permalink
fix aura preview
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Sep 11, 2024
1 parent 096270c commit 42f515f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/organisms/GameBoard/Auras/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const DragWrapper = ({
card: GameCard;
}) => {
const [preview, setPreview] = useState(false);
console.log({ card }, `${CARD_CDN}${card.img}.webp`);
return (
<div style={{ width: "100%", height: "100%" }}>
<DragItem
Expand All @@ -90,7 +91,7 @@ const DragWrapper = ({
transform={card?.type === "site" ? "rotate(90deg)" : ""}
borderRadius="0.5rem"
style={{
backgroundImage: `url(${CARD_CDN}/${card.img}.webp)`,
backgroundImage: `url(${CARD_CDN}${card.img}.webp)`,
}}
onContextMenu={(e) => {
e.preventDefault();
Expand All @@ -101,7 +102,7 @@ const DragWrapper = ({
<Modal
wrapperProps={{ open: preview, onOpenChange: setPreview }}
content={
<Box h="600px">
<Box h="600px" minW="400px">
{card?.type === "site" && <FullCardAtlas img={card?.img} />}
{card?.type !== "site" && <FullCard img={card?.img} />}
</Box>
Expand Down

0 comments on commit 42f515f

Please sign in to comment.