Issue : #15794 ## Context As shown in the linked issue, slash menu dropdown for rich text editor at bottom of notes editor screen extended beyond the page container, causing main page to scroll. ## Changes Made Added floating UI's `flip()` middleware to the component in `CustomSlashMenu.tsx` so that the menu automatically flips upward when detecting not enough space for dropdown. This prevents overflow beyond the page container. Additionally, added offset to menu when flipping up to prevent overlapping of the current line / caret. ## Results https://github.com/user-attachments/assets/47a79468-779c-4fd7-8e22-2b496456ea92 --------- Co-authored-by: Hyeonjae Park <hyeonjaep@Hyeonjaes-MacBook-Pro.local> Co-authored-by: Etienne <45695613+etiennejouan@users.noreply.github.com>