BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Side menu is incorrectly positioned in the middle of a block

Open lucasfcosta opened this issue 2 years ago • 1 comments

Describe the bug

On Notion, the position of the side menu is positioned at the start of each block, as shown below.

Screenshot 2023-10-19 at 16 27 33

In BlockNote, the side menu is positioned in the middle of each block, which is inconsistent with the notion-like behaviour it aims to be similar to.

incorrectpos

To Reproduce

Just create a multi-line block and hover over the paragraph.

lucasfcosta avatar Oct 19 '23 19:10 lucasfcosta

This is a good point, since we do want BlockNote to offer as similar UX to Notion as possible. I think the reason we originally decided not to do this, is that it looks a bit off for blocks which aren't very tall (e.g. headings). But this is something we can look into changing. @YousefED what's your opinion on this?

matthewlipski avatar Oct 23 '23 16:10 matthewlipski

hello hello, was there any update on this feature request?

man-shar avatar May 26 '24 18:05 man-shar

This is a good point, since we do want BlockNote to offer as similar UX to Notion as possible. I think the reason we originally decided not to do this, is that it looks a bit off for blocks which aren't very tall (e.g. headings). But this is something we can look into changing. @YousefED what's your opinion on this?

I think top alignment is definitely better. If it looks weird on any of the blocks (test this), then let's discuss here

YousefED avatar May 28 '24 12:05 YousefED

Thank you for checking in again!

I also prefer top as a fix for the taller blocks.

Is it possible at all to give a prop with, say, three options: top, middle and bottom? (Or even provide a custom function which is given the relevant block and drag handle's dom?).

I understand if the code for placing the drag-handle is super deep inside a plugin to make this infeasible though.

man-shar avatar May 28 '24 12:05 man-shar