teragrep / ajs_01

User interface for Teragrep
Apache License 2.0
0 stars 0 forks source link

Monospaced fonts in editor #113

Open kortemik opened 1 year ago

kortemik commented 1 year ago

ID <173> Reporter <@JohnJacobGuy>

Monospaced fonts is needed in the notebook editors as otherwise we have issues with putting things in right place. Verify that this works in edge.

Make sure that it works when line numbers are enabled!!!

The notebook editor does not show the correct place of the cursor when writing in editor. This is due to the font.

kortemik commented 1 year ago

User <@ronja-ui> Date <[2022-04-26T08:21:49Z]>

First things first - couldn't confirm this problem on edge in our public tg1 environment https://iris-tg2.teragrep.org/#/notebook/2H1AP1KAB

I recorded a video as well.

Peek_2022-04-26_11-18.webm

kortemik commented 1 year ago

User <@ronja-ui> Date <[2022-04-28T11:29:08Z]>

By default ace editor is using monospace font. Also, by default no browser or operating system will override fonts used on a website.

If the user has set a custom font from browser settings or even system settings, it will override all fonts used on a website - which will affect on how ace editor acts.

We can tho still investigate what we can do if a user is using custom fonts on their browser so the editor still performs well.

kortemik commented 1 year ago

User <@ronja-ui> Date <[2022-05-10T09:20:14Z]>

Managed to finally replicate the problem (maybe).

Used virtual machine with this, apparently linux and windows display stuff on edge a bit differently even if the version number is the same.

Peek_2022-05-10_12-18.webm