From 31105263b5bce25be5dfc6a0c609d5b70c5e112a Mon Sep 17 00:00:00 2001 From: sovanna Date: Sun, 19 Jan 2020 15:15:51 +0100 Subject: [PATCH] fix(mobile/shop): Adds zindex to cloned card while dragging --- package.json | 3 +-- static/css/order-hardware.css | 4 ++++ static/js/shop.jsx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ac2b4ec..f4f7030 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "babel": { "presets": [ "@babel/preset-env", - "@babel/preset-react", - "minify" + "@babel/preset-react" ] } } diff --git a/static/css/order-hardware.css b/static/css/order-hardware.css index 66c915e..a2e2f24 100644 --- a/static/css/order-hardware.css +++ b/static/css/order-hardware.css @@ -8,6 +8,10 @@ font-size: .75em; } +.simu-clone { + z-index: 10; +} + /* ##Device = Tablets, Ipads (portrait) ##Screen = B/w 768px to 1024px diff --git a/static/js/shop.jsx b/static/js/shop.jsx index fe23e0c..40259c4 100644 --- a/static/js/shop.jsx +++ b/static/js/shop.jsx @@ -255,7 +255,7 @@ class ProductItem extends React.PureComponent { {/* Allows to simulate a clone */} {snapshot.isDragging && ( - + )} )}