Pārlūkot izejas kodu

fix(mobile/shop): Adds zindex to cloned card while dragging

master
sovanna pirms 6 mēnešiem
vecāks
revīzija
31105263b5
3 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. +1
    -2
      package.json
  2. +4
    -0
      static/css/order-hardware.css
  3. +1
    -1
      static/js/shop.jsx

+ 1
- 2
package.json Parādīt failu

@@ -21,8 +21,7 @@
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"minify"
"@babel/preset-react"
]
}
}

+ 4
- 0
static/css/order-hardware.css Parādīt failu

@@ -8,6 +8,10 @@
font-size: .75em;
}

.simu-clone {
z-index: 10;
}

/*
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px


+ 1
- 1
static/js/shop.jsx Parādīt failu

@@ -255,7 +255,7 @@ class ProductItem extends React.PureComponent {

{/* Allows to simulate a clone */}
{snapshot.isDragging && (
<img className="" src={image} />
<img className="simclone" src={image} />
)}
</React.Fragment>
)}


Notiek ielāde…
Atcelt
Saglabāt