summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkCodeEditor.vue
diff options
context:
space:
mode:
authorLeah <kevinlukej@gmail.com>2024-02-03 16:05:33 +0000
committerLeah <kevinlukej@gmail.com>2024-02-03 16:05:33 +0000
commit441523b6d4d5ecd14c813690d34978899a1ccd43 (patch)
treec7ccdab16d999c2e19f1e2533a9758a70860741f /packages/frontend/src/components/MkCodeEditor.vue
parentMerge branch 'chore/updateMarkdownAndTemplates' into 'develop' (diff)
parentadded lines and lines to errors (diff)
downloadsharkey-441523b6d4d5ecd14c813690d34978899a1ccd43.tar.gz
sharkey-441523b6d4d5ecd14c813690d34978899a1ccd43.tar.bz2
sharkey-441523b6d4d5ecd14c813690d34978899a1ccd43.zip
merge: Added lines and line numbers to syntax errors (!395)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/395 Approved-by: dakkar <dakkar@thenautilus.net>
Diffstat (limited to 'packages/frontend/src/components/MkCodeEditor.vue')
-rw-r--r--packages/frontend/src/components/MkCodeEditor.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkCodeEditor.vue b/packages/frontend/src/components/MkCodeEditor.vue
index 789acbd4c1..7334fc4d0e 100644
--- a/packages/frontend/src/components/MkCodeEditor.vue
+++ b/packages/frontend/src/components/MkCodeEditor.vue
@@ -204,6 +204,8 @@ watch(v, newValue => {
min-width: calc(100% - 24px);
height: 100%;
padding: 12px;
+ // the +2.5 rem is because of the line numbers
+ padding-left: calc(12px + 2.5rem);
line-height: 1.5em;
font-size: 1em;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;