Problem/Motivation
Dragging from the preview, from the layout tree and from the component list in the primary panel all produces a different result for the DragImage (the little ghost version of what you are dragging that is attached to the cursor).
By default the DragImage is a semi-transparent clone of the HTML element you are dragging but in the preview we don't want this behaviour because the items you are dragging could potentially be huge chunks of the page.
Proposed resolution
Centralising the creation of the DragImage means that we can easily update it to look how we like once we have a more established design. At the moment updating it would require changes in 3 places.
User interface changes
For now just a simple box with the component name or something in it. The objective is to centralise the code not actually finalise the look/feel.
Issue fork experience_builder-3453136
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
wim leersComment #4
larowlanWould be neat to do per MR builds and put the build output in artifacts so we can test without local
I'll make an issue for that next week
Comment #5
wim leers… or should we start committing the built
dist/? 🤔 I worry that is going to get in the way too much though; it'd seriously hamper the DX for folks working on the UI 😬Comment #6
jessebaker commentedI'd be very worried about the amount of conflicts and weirdness in trying to maintain a committed version of the contents of
dist/so +1 to "per MR builds"Comment #7
wim leers#6: 👍 We're on the same page then!
Comment #10
bnjmnmGood refinement. Merged.
Comment #11
wim leers