diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-03-03 12:06:22 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-03-03 12:06:22 +0000 |
| commit | 03464cc3792aa570548c0634e16cabf1e232c995 (patch) | |
| tree | 2dfe12e8fc5a0deebdf487f3b878879329a11cd2 | |
| parent | merge: put back the readme (!447) (diff) | |
| download | sharkey-03464cc3792aa570548c0634e16cabf1e232c995.tar.gz sharkey-03464cc3792aa570548c0634e16cabf1e232c995.tar.bz2 sharkey-03464cc3792aa570548c0634e16cabf1e232c995.zip | |
always align code to the left - fixes #436
"featured notes" on the welcome page's right-hand column are shown
with the text right-aligned; code should not be affected by that. This
makes sure it isn't
| -rw-r--r-- | packages/frontend/src/components/MkCode.core.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkCode.core.vue b/packages/frontend/src/components/MkCode.core.vue index f9aaf4eff3..f696ae2f1a 100644 --- a/packages/frontend/src/components/MkCode.core.vue +++ b/packages/frontend/src/components/MkCode.core.vue @@ -72,6 +72,10 @@ watch(() => props.lang, (to) => { </script> <style module lang="scss"> +.codeBlockRoot { + text-align: left; +} + .codeBlockRoot :global(.shiki) > code { counter-reset: step; counter-increment: step 0; |