summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-03-03 12:06:22 +0000
committerdakkar <dakkar@thenautilus.net>2024-03-03 12:06:22 +0000
commit03464cc3792aa570548c0634e16cabf1e232c995 (patch)
tree2dfe12e8fc5a0deebdf487f3b878879329a11cd2 /packages/frontend/src/components
parentmerge: put back the readme (!447) (diff)
downloadsharkey-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
Diffstat (limited to 'packages/frontend/src/components')
-rw-r--r--packages/frontend/src/components/MkCode.core.vue4
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;