sinedied / hads

:books: Markdown superpowered documentation for Node.js
MIT License
167 stars 28 forks source link

Cursor in Editor wrong left margin #32

Closed setianke closed 5 years ago

setianke commented 5 years ago

The Cursor in the Editor has a wrong spacing from the left:

image

tested with all major Browser and different Screen Resolutions.

sinedied commented 5 years ago

This bug sometimes occurs as you can see here https://github.com/ajaxorg/ace/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+cursor, most often it's when using unicode characters 😞 As this is related to the Ace editor component, I may consider switching to another editor, for example https://github.com/Microsoft/monaco-editor.

PR welcome 😉

jamerson commented 5 years ago

A simple workaround to this is to add font-family: 'Courier'; in .ace_editor selector (style.css file). I'm using Courier but any monospace font should do the work.

sinedied commented 5 years ago

@jamerson Thanks for the tip, I'll try that 😉

jamerson commented 5 years ago

I can open a PR with that if you prefer

sinedied commented 5 years ago

That would be nice, thanks!