codepod icon indicating copy to clipboard operation
codepod copied to clipboard

[Bug] The cursor in code editors always has a offset to its actual position.

Open li-xin-yi opened this issue 2 years ago • 7 comments

I feel very uncomfortable to test my code in this case.

cursor-offset

li-xin-yi avatar Aug 28 '23 07:08 li-xin-yi

I can't reproduce that. Maybe try a clean start?

lihebi avatar Aug 28 '23 18:08 lihebi

I can't produce the behavior on Safari/Mac either.

senwang86 avatar Aug 28 '23 21:08 senwang86

I also tried on Safari/Mac, no such behaviors. But it frequently occurs on Chrome.

li-xin-yi avatar Aug 28 '23 23:08 li-xin-yi

I use chrome, I cannot reproduce.

lihebi avatar Aug 28 '23 23:08 lihebi

start with an empty code node, everything works normally within the first 2 typed letters: image But the cursor starts to drift after typing the third one.

Besides, I feel the font family looks different since PR #467 , both the code editor and the dashboard:

image

But no such changes on Safari.

li-xin-yi avatar Aug 28 '23 23:08 li-xin-yi

But the cursor starts to drift after typing the third one.

I know what you mean, and I couldn't reproduce it.

I suspect it's some caching problem. Try clone a fresh copy of source code, and create a fresh docker stack, and see if the issue disappears.

lihebi avatar Aug 28 '23 23:08 lihebi

I feel the font family looks different since PR #467

It should have been caused by #468 when I switched to Vite, probably not a big deal.

lihebi avatar Aug 28 '23 23:08 lihebi