code-line-numbers: horizontal scroll bugfix

added background so that numbers no longer appear over the code
This commit is contained in:
CloudHill 2020-12-11 17:15:35 +07:00
parent 3f48fa42ab
commit c4b4d31aa2
2 changed files with 7 additions and 4 deletions

View File

@ -13,12 +13,15 @@
padding-left: 48px !important; padding-left: 48px !important;
} }
#code-line-numbers { #code-line-numbers {
font-size: var(--theme--font_code-size) !important; font-size: var(--theme--font_code-size);
font-family: var(--theme--font_code) !important; font-family: var(--theme--font_code);
color: var(--theme--text_ui_info); color: var(--theme--text_ui_info);
background: var(--theme--code-background);
text-align: right; text-align: right;
position: absolute; position: absolute;
right: calc(100% - 30px); left: 0;
right: calc(100% - 48px);
padding-right: 18px;
overflow: hidden; overflow: hidden;
pointer-events: none; pointer-events: none;
} }

View File

@ -14,7 +14,7 @@ module.exports = {
tags: ['extension'], tags: ['extension'],
name: 'code line numbers', name: 'code line numbers',
desc: 'adds line numbers to code blocks.', desc: 'adds line numbers to code blocks.',
version: '1.1.0', version: '1.1.1',
author: 'CloudHill', author: 'CloudHill',
options: [ options: [
{ {