Fix dragging for gallery card: (#1303)

- use `translate3d` for proper preview in Chrome
  - set `pointer-events` to `none` to prevent image opening in Firefox

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
This commit is contained in:
kamre 2021-10-01 01:46:26 +07:00 committed by GitHub
parent 44520d5748
commit 7617d9e334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,9 @@
margin-bottom: 10px;
cursor: pointer;
// HACK: Fixes Chrome drag and drop preview
transform: translate3d(0, 0, 0);
&.selected {
background-color: rgba(90, 200, 255, 0.2);
}
@ -45,6 +48,7 @@
opacity: 0.7;
max-height: 160px;
min-height: 160px;
pointer-events: none;
.CheckboxElement {
.Editable {