vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
19 stars 25 forks source link

fix(theme-default): code block line number misalignment in Safari #164

Closed pengzhanbo closed 1 month ago

pengzhanbo commented 1 month ago

Before submitting the PR, please make sure you do the following

What is the purpose of this pull request?

Description

The height of .line-number should be calculated based on the font-size and line-height of .line-numbers, rather than being directly set to {line-height}em, as this could lead to rendering issues.

 .line-number {
   ...
-  height: #{$line-height}em;
 }
coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 9280098507

Details


Totals Coverage Status
Change from base Build 9273639561: 0.0%
Covered Lines: 994
Relevant Lines: 1574

💛 - Coveralls