question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icons are not properly aligned vertically in GitHub. I suggest adding vertical-align: -3px; to the <img> tags.

default + github-vscode-icons + vertical-align
Capture d’écran 2020-08-26 à 12 30 52 Capture d’écran 2020-08-26 à 12 29 52 Capture d’écran 2020-08-26 à 12 34 25

What do you think?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
s-weigandcommented, Oct 3, 2020

Since vertical-align: middle; looks pretty similar, adding the class vscode-icon to the img should do the trick as well.

This would mean just adding class="vscode-icon" to this line.

https://github.com/dderevjanik/github-vscode-icons/blob/3470130cbd55f0470cda9491e34325e3e0e5a55c/packages/content/pages/GitHub.ts#L103

Try it out and tell me what you think:

document.querySelectorAll("div.Box-row > div:nth-child(1) > img").forEach((item)=>{item.setAttribute('class', 'vscode-icon');})
1reaction
s-weigandcommented, Oct 3, 2020

This is the css file used by the extension. And the selector would be something like div.Box-row > div:nth-child(1) > img:nth-child(1).

Read more comments on GitHub >

github_iconTop Results From Across the Web

vertical-align - CSS: Cascading Style Sheets - MDN Web Docs
The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box.
Read more >
CSS vertical-align property - W3Schools
The vertical-align property sets the vertical alignment of an element. Show demo ❯. Default value: baseline. Inherited: no. Animatable: yes. Read about ...
Read more >
vertical-align - CSS-Tricks
The vertical-align property in CSS controls how elements set next to each other on a line are lined up.
Read more >
Vertical alignment - Bootstrap
Easily change the vertical alignment of inline, inline-block, inline-table, and table cell elements.
Read more >
Vertical Align - Tailwind CSS
Utilities for controlling the vertical alignment of an inline or table-cell box.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found