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

Fixed the toolbar in Wagtail 4. #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

coredumperror
Copy link

The fixes include:

  • Increased the height of the top-padding which gets added when the toolbar appears. This makes room for it always being two rows in Wagtail 4, due to the limited width of rich text editors.
  • Removed the .object prefix on the CSS we apply, since Wagtail 4 page editors don't use that class any more.
  • Added 44px to the 'top' position set by the JS for the toolbar, to account for the changes in Wagtail 4's editor UI.
  • Made the scroll and resize events trigger for both the window object and '.content-wrapper', since window doesn't scroll any more in Wagtail 4. The window events are retained because I think they're still relevant in Wagtail 3.

…y on Wagtail 4.

The fixes include:

* Increased the height of the top-padding which gets added when the toolbar appears. This makes room for it always being two rows in Wagtail 4, due to the limited width of rich text editors.
* Removed the .object prefix on the CSS we apply, since Wagtail 4 page editors don't use that class any more.
* Added 44px to the 'top' position set by the JS for the toolbar, to account for the changes in Wagtail 4's editor UI.
* Made the scroll and resize events trigger for both the `window` object and '.content-wrapper', since the window doesn't scroll any more in Wagtail 4. The window events are retained because I think they're still relevant in Wagtail 3.
@TensaCoder
Copy link

Hi, have you also fixed the "resize to make room for the toolbar" issue?

@coredumperror
Copy link
Author

Hi, have you also fixed the "resize to make room for the toolbar" issue?

Yes. The toolbar is now completely functional in Wagtail 4.

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

Successfully merging this pull request may close these issues.

None yet

2 participants