Replies: 2 comments 1 reply
-
Or we may evolve our current implementation in QuickBar into an equivalent reusable library for positioning editor toolbars. What do you think about this @lawvs? |
Beta Was this translation helpful? Give feedback.
-
We spend more time handling the direction of the selection instead of float positioning. And popper.js cannot help me with this part. But I will consider using it when developing other pop-up layers. Specifically, the quick bar needs to display at end of the selection when the user selects some text. But the We handle it at blocksuite/packages/blocks/src/page-block/utils/cursor.ts Lines 29 to 140 in 4904969 And the popper.js can only do the following things blocksuite/packages/blocks/src/page-block/utils/cursor.ts Lines 142 to 184 in 4904969 |
Beta Was this translation helpful? Give feedback.
-
https://popper.js.org/
Beta Was this translation helpful? Give feedback.
All reactions