Only transition padding when expanding components during DND, but remove it immediately on drop to avoid layout thrashing
This commit is contained in:
parent
554b219d62
commit
da3202f3c3
|
@ -505,14 +505,12 @@
|
||||||
.component {
|
.component {
|
||||||
display: contents;
|
display: contents;
|
||||||
}
|
}
|
||||||
.component :global(> *) {
|
|
||||||
transition: padding 260ms ease-out, border 260ms ease-out;
|
|
||||||
}
|
|
||||||
.component.pad :global(> *) {
|
.component.pad :global(> *) {
|
||||||
padding: var(--spacing-l) !important;
|
padding: var(--spacing-l) !important;
|
||||||
gap: var(--spacing-l) !important;
|
gap: var(--spacing-l) !important;
|
||||||
border: 2px dashed var(--spectrum-global-color-gray-400) !important;
|
border: 2px dashed var(--spectrum-global-color-gray-400) !important;
|
||||||
border-radius: 4px !important;
|
border-radius: 4px !important;
|
||||||
|
transition: padding 260ms ease-out, border 260ms ease-out;
|
||||||
}
|
}
|
||||||
.interactive :global(*) {
|
.interactive :global(*) {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
Loading…
Reference in New Issue