#469  Backtick quotes (`) in the text editor
Closed
Stephen S opened 5 months ago

When adding backtick quotes (`) in the editor, the cursor seems to backtrack.
In fact the reason seems to be that the space after the backtick is too tight. Maybe that is related to the font you're using for the editor.
When adding code blocks or even code within the text, it is annoying.
A solution might be to allow:

  • for another font
  • for bigger text size
Robin Shen commented 5 months ago

Can you please attach a screenshot demonstrating the issue?

Stephen S commented 5 months ago

In-text code:

image.png

Stephen S commented 5 months ago

This is a code block:

image_2.png

Robin Shen commented 5 months ago

This does look nasty. Which os/browser are you using?

Stephen S commented 5 months ago

Debian 10 and Gnome.

Stephen S commented 5 months ago

I have tried to understand what happens and I now guess that backticks are understood by the system as dead caps, waiting for the next letter to be written then joined with it.

Robin Shen commented 5 months ago

Will changing font type/size work in this case?

Stephen S commented 5 months ago

I guess so. I am using Brave and Firefox as browsers, both with the standard font settings.

Robin Shen commented 5 months ago

Just set up a debian10 via VMWare and access OneDev from it with firefox. The backtick displays fine when editing the markdown.

Robin Shen changed state to 'Closed' 5 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 5 months ago

Closing now. Feel free to reopen if there is more info.

Stephen S commented 5 months ago

Hi Robin, OneDev is the ONLY software (we have +64 hosted here) displaying the behavior.
My hunch is that you are using a font that is not standard and/or not available on Linux.

Stephen S commented 5 months ago

I had an idea: maybe OneDev is not compatible with one of the Brave extensions I activate in normal usage: Decentraleyes, UBlockOrigin.
I checked by opening a OneDev editor in a Private window where I desactivate all extensions > the same.

Robin Shen changed state to 'Open' 5 months ago
Previous Value Current Value
Closed
Open
Robin Shen commented 5 months ago

OneDev is using google poppins font which is very comfort, and it works in Mac, Windows.
I tried Debain and Ubuntu from VMWare and they both display nicely. Maybe I need to set up a bare metal linux box to verify this.

Reopen this issue to keep a record.

Stephen S commented 5 months ago

You know, I'll try to install the font on my workstation (which it is not). Will keep you posted.
But this can't be the only time you will see this reported by Linux users.

Stephen S commented 5 months ago

Actually, Poppins font was already installed on my machine. I will try to remove it instead and load it on the fly from the website itself.

Robin Shen commented 5 months ago

You may open with firefox, open the debugger to turn off poppins font in selector html, body to see if backtick displays correctly

2021-12-15_09-15-24.png

Stephen S commented 5 months ago

BINGO ! It worked well when I disabled the font in the debugger:

image_3.png

So, I guess I will have to uninstall the version I have on my workstation.
But, as you know, fonts are a matter of taste and I find this one not so readable as compared with, say, Lato.
So, why not allow users to choose their own font and font size?

Robin Shen commented 5 months ago

Thanks for verification. Will disable poppins for Linux users. Allowing user to choose font family and size freely is not a good idea as UI is often tuned under a specific font/size.

Robin Shen changed state to 'Closed' 3 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 3 months ago

Closing as unable to reproduce.

issue 1 of 1
Type
Bug
Priority
Minor
Assignee
Seen Builds
Issue Votes (0)
Watchers (4)
Reference
issue onedev/server#469
Please wait...
Page is in error, reload to recover