alecthomas / alecthomas/chroma
With LineNumbersInTable enabled, highlighted line numbers have wrong height
- 主要语言
- Go
- 星标
- 5k
- 派生
- 522
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 11
描述
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:

贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。