Skip to content
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

When drop areas appear, CEs move position down #682

Open
webian opened this issue Aug 1, 2023 · 1 comment
Open

When drop areas appear, CEs move position down #682

webian opened this issue Aug 1, 2023 · 1 comment

Comments

@webian
Copy link
Collaborator

webian commented Aug 1, 2023

When the editor starts to drag a CE the drop areas appear and make the various CEs in the page to move position down. This is disorienting for the editor. It would be better if the CE never change position while editing.

n3jyddg3

@webian
Copy link
Collaborator Author

webian commented Aug 1, 2023

To solve this problem I tried experimenting with position:absolute for the drop areas.
This way might solve the problem of CEs moving but the drop areas tags are actually positioned before the CE wrapper (.t3-frontend-editing__ce) instead of inside it.
So by using position:absolute the drop areas are positioned in the parent of .t3-frontend-editing__ce instead of be absolute positioned on the .t3-frontend-editing__ce itself, so they end up on the wrong place.

Checking the code I'm not sure if moving the drop areas inside the CEs wrappers could have side effects.

@webian webian changed the title Improve drop areas When drop areas appear, CEs move position down Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant