fix: Line numbers overlay code when block is horizontally scrollable
This commit is contained in:
@@ -1023,7 +1023,8 @@ mark {
|
|||||||
&:after {
|
&:after {
|
||||||
content: attr(data-line-numbers);
|
content: attr(data-line-numbers);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 1em;
|
padding-left: 1em;
|
||||||
|
left: 0;
|
||||||
top: calc(1px + 0.75em);
|
top: calc(1px + 0.75em);
|
||||||
width: calc(var(--line-number-gutter-width,0) * 1em + .25em);
|
width: calc(var(--line-number-gutter-width,0) * 1em + .25em);
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
@@ -1032,6 +1033,7 @@ mark {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.4em;
|
line-height: 1.4em;
|
||||||
color: ${props.theme.textTertiary};
|
color: ${props.theme.textTertiary};
|
||||||
|
background: ${props.theme.codeBackground};
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user