Skip to content

Commit

Permalink
fix(dashboard): table chart drag preview overflowing container (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
rtexelm authored and sfirke committed Mar 22, 2024
1 parent 4a692fd commit 62ead6c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ const defaultProps = {
const DragDroppableStyles = styled.div`
${({ theme }) => css`
position: relative;
/*
Next line is a workaround for a bug in react-dnd where the drag
preview expands outside of the bounds of the drag source card, see:
https://github.com/react-dnd/react-dnd/issues/832#issuecomment-442071628
*/
transform: translate3d(0, 0, 0);
&.dragdroppable--dragging {
opacity: 0.2;
Expand Down

0 comments on commit 62ead6c

Please sign in to comment.