neardevhub-bos icon indicating copy to clipboard operation
neardevhub-bos copied to clipboard

Mention dropdown in markdown editor is partially hidden

Open petersalomonsen opened this issue 10 months ago • 0 comments

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:

  1. Go to https://near.social/devgovgigs.petersalomonsen.near/widget/app?page=create-proposal
  2. Create text in the description editor and press @ in the right side or in the bottom
  3. 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.

image1

This is how it should be. Fully visible:

photo_4972047484553637590_y

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.

petersalomonsen avatar Apr 18 '24 15:04 petersalomonsen