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:
parent
44520d5748
commit
7617d9e334
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue