ISSUE-017 - Implemented drag bounds that consider the dimensions of dragged element.

This is bugged as the resize observer I'm using doesn't update itself when I reveal the OverlayItem from hiding.
This commit is contained in:
Kyle Geib committed 2022-01-13 15:00:21 -05:00
1 parent 861d702a27
commit aba5cc20be
5 files changed
+51 -25

No files matched your search

@@ -12,6 +12,7 @@ export const OverlayItemContainer = styled.div.attrs<OverlayItemContainerProps>(
},
}))<OverlayItemContainerProps>`
/* Temporary. Overlay will be transparent and based on an image. */
/* width: ${({ tempColor }) => tempColor == "red" ? "150px" : "100px"}; */
width: 150px;
height: 150px;
background-color: ${({ tempColor }) => tempColor};