🐛 adjust BlockCardLayout min height to avoid layout shift

This commit is contained in:
Baptiste Arnaud 2024-12-11 14:45:55 +01:00
parent 16501cc57c
commit 417f33bc5d
No known key found for this signature in database
2 changed files with 1 additions and 1 deletions

View File

@ -35,6 +35,7 @@ export const BlockCardLayout = ({
rounded="lg"
flex="1"
cursor={"grab"}
minH={isMouseDown ? "42px" : undefined}
opacity={isMouseDown ? "0.4" : "1"}
onMouseDown={handleMouseDown}
bgColor={useColorModeValue("gray.50", "gray.850")}

View File

@ -1,6 +1,5 @@
import { LockedIcon, UnlockedIcon } from "@/components/icons";
import { useBlockDnd } from "@/features/graph/providers/GraphDndProvider";
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
Fade,
Flex,