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

[BUG] Image toolbar moves outside of editor if image url is invalid #607

Open
2 tasks done
jgeppert opened this issue Oct 14, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@jgeppert
Copy link
Contributor

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • I have read the documentation and cannot find an answer.

Describe the bug
Image toolbar moves outside of the editor when image can't be loaded.
This is especially annoying if the editor covers the whole width of the page, because then most of the toolbar is not inside the window.

To Reproduce
Steps to reproduce the behavior:

  1. Open an editor instance with image plugin
  2. Insert image, use an invalid URL, e.g. /a.jpeg

Expected behavior
Image toolbar is fully contained within the editor.

Screenshots
Screenshot 2024-10-14 at 12 11 01

Editor covering full width of the page:
Screenshot 2024-10-14 at 12 11 30

Desktop (please complete the following information):

  • OS: any
  • Browser [e.g. Chrome, Safari]: Chrome
@jgeppert jgeppert added the bug Something isn't working label Oct 14, 2024
@jgeppert
Copy link
Contributor Author

A naive solution could be to just add a min-width with roughly the size of the toolbar to the parent element. The only drawback i can think of is that this might not look right for very tiny images, but I'm not sure if that's a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant