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:
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};
|
||||
|
||||
Reference in new issue
Block a user