betteridea-dev / ide

A better IDE for arweave contracts
https://ide.betteridea.dev/
GNU General Public License v3.0
17 stars 7 forks source link

Cursor offset from actual position #9

Open AAshu1412 opened 1 month ago

AAshu1412 commented 1 month ago

Screenshot 2024-05-27 190638

Screenshot 2024-05-27 190819

ankushKun commented 1 month ago

Others have also reported the same issue, however I am unable to reproduce the same on my setup.

Most probably it seems like an issue with the fonts width or css.

Attempting a fix

ankushKun commented 1 month ago

Update: Located the issue, it is because of the editor not calculating (or miscalculating) the 'DM Mono' text width when the IDE loads for the first time. Which updates once you add a new cell, the cells rerender and recalculate the width.

As a temporary fix I've reverted to using default monospaced font in 643e391