Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the edit cursor is in the wrong position #134

Closed
dattran1232003 opened this issue Apr 4, 2021 · 1 comment · Fixed by #198
Closed

the edit cursor is in the wrong position #134

dattran1232003 opened this issue Apr 4, 2021 · 1 comment · Fixed by #198

Comments

@dattran1232003
Copy link

After I change font family (in somewhere I don't remember), I got this UI's error:
Screen Shot 2021-04-04 at 1 32 03 PM

It only happens on the title (and other lines has special characters in begin of line), on normal lines it's doesn't happen. the edit cursor does not move to the end of the line, no matter whether I press the end of a line or use the arrow keys, it is there.

I'm found a way to fix, add some css (scss in my case) to change font family of "span.token.title.important" and "span.token.title.important .token.punctuation" like this:

// scss
span.token.title.important {
  font-family: inherit;
  .token.punctuation {
    font-family: inherit;
  }
}

// css
span.token.title.important {
      font-family: inherit;
}
  span.token.title.important .token.punctuation {
    font-family: inherit;
  }

"span.token.title.important" and ".token.punctuation" took font-family css from its parent and problem has been fix:
Screen Shot 2021-04-04 at 1 58 32 PM

@jaywcjlove
Copy link
Member

There is a conflict of fonts family in your project? @dattran1232003 I tested it and did not encounter your situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants