Skip to content

Conversation

matthewlipski
Copy link
Collaborator

@matthewlipski matthewlipski commented Apr 14, 2023

The menus and toolbars currently stay in place when the page is scrolled. This PR makes makes their positions update on scroll.

closes #165

@vercel
Copy link

vercel bot commented Apr 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocknote-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 2:52pm

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best we can do for now.

A more ideal solution would be if we the menus would be locate relatively in the editor. In that case CSS should be able to take care of the positioning, and we don't have to manually update it.

However, this would be a bit cumbersome to fix now I think as menus are located at a different position in the HTML tree. We should create a separate issue for this

@YousefED YousefED changed the title Scrolling fix fix: menu positioning when scrolling Apr 18, 2023
@YousefED YousefED merged commit 3faa05e into main Apr 18, 2023
fogle pushed a commit to fogle/BlockNote that referenced this pull request May 20, 2023
* Made all menus/toolbars scroll with page

* Revert "Made all menus/toolbars scroll with page"

This reverts commit 6071095.

* Made all menus/toolbars scroll with page
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.

When scrolling, the slash menu and plus sign doesn't scroll

2 participants