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

Tab cannot be aligned if there is Chinese character in its left-side #7030

Open
cyfung1031 opened this issue Mar 13, 2023 · 1 comment
Open

Comments

@cyfung1031
Copy link

cyfung1031 commented Mar 13, 2023

Screen Shot 2023-03-14 at 7 40 48

\t\t你
\t你\t你
 你。\t你
\t\tu
\tu\tu
 u.\tu

https://codemirror.net/5/demo/theme.html

@cyfung1031
Copy link
Author

I found a solution using CSS.
In my case, I just have one tab in one row.
I used createMode that enclose the word including the tab in every row.
I set the enclosing span as display:inline-flex; width:12em; flex-direction: row then problem solved.
The .cm-tab will automatically grow to fill up the remaining space of the enclosing span.

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

No branches or pull requests

1 participant