alecthomas / alecthomas/chroma
With LineNumbersInTable enabled, highlighted line numbers have wrong height
- Lenguaje dominante
- Go
- Estrellas
- 5k
- Forks
- 522
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 11
Descripción
With `LineNumbersInTable` enabled, if the inherited CSS line height is greater than one, then the height of highlighted numbers is not equal to the height of the highlighted code.

@willfaught suggested the following fix:
```css
.chroma .lntable .lnt,
.chroma .lntable .hl {
display: flex;
}
```
And while the body is open, perhaps we could make the second column take up the remaining width. You can see the difference above.
Using the [adjacent sibling combinator](https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator):
```css
.lntable .lntd + .lntd {
width: 100%;
}
```
With both of these changes:

Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.