neardevhub-bos
neardevhub-bos copied to clipboard
Mention dropdown in markdown editor is partially hidden
Describe the bug When mentioning someone from the markdown editor, the dropdown that pops up with suggestions is partially hidden if editing text on the right or bottom sides of the editor frame.
To Reproduce Steps to reproduce the behavior:
- Go to https://near.social/devgovgigs.petersalomonsen.near/widget/app?page=create-proposal
- Create text in the description editor and press @ in the right side or in the bottom
- See that the dropdown with suggestions is only partially visible
Expected behavior The dropdown with mention suggestions should be fully visible
Screenshots
This is from when the mention popup is near the bottom of the editor frame.
This is how it should be. Fully visible:
Additional context The reason for this problem is because of the markdown editor being in an iframe, and the dropdown being rendered inside that iframe. An alternative solution could be to make sure that the drop-down position adjusts so that it does not go outside the boundaries of the iframe.