-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show movers next to block switcher #22673
Changes from 1 commit
9e22137
5eaf7cd
b12f5c2
ea8f2a2
593240b
368a566
b654825
c561d70
9cb984b
fd18667
1ecb964
d0bb0bb
27e548a
ffe28be
cce712f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,14 @@ body.is-dragging-components-draggable { | |
|
||
.components-draggable__clone { | ||
position: fixed; | ||
padding: 20px; | ||
padding: 0; // Should match clonePadding variable. | ||
background: transparent; | ||
pointer-events: none; | ||
z-index: z-index(".components-draggable__clone"); | ||
|
||
> * { | ||
opacity: 0.8; | ||
// This needs specificity as a theme is meant to define these by default. | ||
margin-top: 0 !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know that you must never use !important. Except in this case. Themes can define block margins, and when they do, the draggable clone will be as offset from the mouse cursor position as the theme margin decides. By explicitly and with high specificity setting these, this is unlikely to break. |
||
margin-bottom: 0 !important; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 20 appear to have been picked at random, back in the day, and almost certainly due to there being side UI and margins. Because there is neither anymore, I've now set this to zero, instead of cmopensating for it.