Skip to content

Commit a95e745

Browse files
87xieDimitri POSTOLOV
and
Dimitri POSTOLOV
authoredJul 20, 2024··
[v3] Fix the line-numbers style in syntax highlighting (#2929)
* Fix the line-numbers style in syntax highlighting * Update .changeset/warm-cameras-vanish.md --------- Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>
1 parent e95faa1 commit a95e745

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎.changeset/warm-cameras-vanish.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'nextra': patch
3+
'nextra-theme-docs': patch
4+
'nextra-theme-blog': patch
5+
---
6+
7+
Fix the line highlighting background-color does not extend to the full width of the code block when a scrollbar appears with line numbers.

‎packages/nextra/styles/code-block.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pre code:not([class*='twoslash-']) {
2525
&::before {
2626
counter-increment: line;
2727
content: counter(line);
28-
@apply _float-left _pr-4 _text-right _min-w-[2.6rem] _text-gray-500;
28+
@apply _inline-block _pr-4 _text-right _min-w-[2.6rem] _text-gray-500;
2929
}
3030
}
3131

0 commit comments

Comments
 (0)
Please sign in to comment.