Skip to content

Commit

Permalink
fix(Dashboard): Add editMode conditional for translate3d fix on chart…
Browse files Browse the repository at this point in the history
…s to allow intended Fullscreen (apache#27613)
  • Loading branch information
rtexelm authored Mar 22, 2024
1 parent 2ade3db commit 0a2e0ee
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ const DragDroppableStyles = styled.div`
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--edit-mode {
transform: translate3d(0, 0, 0);
}
&.dragdroppable--dragging {
opacity: 0.2;
Expand Down Expand Up @@ -180,6 +182,7 @@ export class UnwrappedDragDroppable extends React.PureComponent {
data-test="dragdroppable-object"
className={cx(
'dragdroppable',
editMode && 'dragdroppable--edit-mode',
orientation === 'row' && 'dragdroppable-row',
orientation === 'column' && 'dragdroppable-column',
isDragging && 'dragdroppable--dragging',
Expand Down

0 comments on commit 0a2e0ee

Please sign in to comment.