fix(dashboard): table chart drag preview overflowing container (#27308)

This commit is contained in:
Ross Mabbett 2024-02-29 17:37:55 -05:00 committed by GitHub
parent 9beee92da1
commit ad3995daf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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;