Skip to content

Make links variable-width without underline#367

Merged
jcreedcmu merged 1 commit intogithub:masterfrom
jbj:link-style
May 14, 2020
Merged

Make links variable-width without underline#367
jcreedcmu merged 1 commit intogithub:masterfrom
jbj:link-style

Conversation

@jbj
Copy link
Copy Markdown
Contributor

@jbj jbj commented May 14, 2020

These are two independent changes.

  • The monospace font used in links made the text larger so that less text could fit on the screen. It also suggested that all link text was an code snippet, which it isn't. The advantage of a fixed-width font, vertical alignment, was not put to any use.
  • Underlining of links made it almost impossible to distinguish a space from an underscore.

Before:
vscode-underline

After:
vscode-no-underline

Notice how it's practically impossible to tell underscores from spaces in the underlined link for unpack_index_entry output argument [cache_nr] (row 11).

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • @github/product-docs-dsp has been cc'd in all issues for UI or other user-facing changes made by this pull request.

These are two independent changes.
- The monospace font used in links made the text larger so that less
  text could fit on the screen. It also suggested that all link text was
  an code snippet, which it isn't. The advantage of a fixed-width font,
  vertical alignment, was not put to any use.
- Underlining of links made it almost impossible to distinguish a space
  from an underscore.
@jcreedcmu
Copy link
Copy Markdown
Contributor

I mostly like this idea, but I feel like monospaced font is good simply for visually signalling that a piece of text is code --- how would you feel about making the result monospaced, but decreasing the font size a bit?

@aeisenberg suggested it would be good if we could match the exact font the user currently has configured for text in buffers in vscode, though it's not immediately obvious to me whether we can get at that across the webview boundary easily.

@jbj
Copy link
Copy Markdown
Contributor Author

jbj commented May 14, 2020

I mostly like this idea, but I feel like monospaced font is good simply for visually signalling that a piece of text is code

The problem is when the text isn't code. It's only sometimes code. In my screenshots, the non-code phrases are: "user input", "call to", "output argument", and "BufferReadSideEffect". That last one needs to be changed into something human-readable.

@aeisenberg
Copy link
Copy Markdown
Contributor

I like removing the underline. Although I agree that using monospace font for code is more intuitive, I also see how it's not all code, so I don't really feel strongly about using monospace or not here. I'm fine letting this go through as-is.

@jcreedcmu
Copy link
Copy Markdown
Contributor

Ah, ok, good point. I don't feel too strongly then either.

@jcreedcmu jcreedcmu merged commit 2da70d7 into github:master May 14, 2020
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 this pull request may close these issues.

3 participants