Skip to content

Commit

Permalink
fix(components): padding for plaintext code blocks
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <[email protected]>
  • Loading branch information
ZTL-UwU committed May 29, 2024
1 parent db0d63e commit 4f7ae7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/content/ProseCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<UiScrollArea>
<div
class="py-3 bg-muted/30 text-sm relative overflow-x-auto"
:class="[`highlight-${language}`, !filename && 'inline-copy']"
:class="[`highlight-${language}`, !filename && 'inline-copy', !language && 'pl-3']"
>
<span v-if="!filename" class="absolute right-4">
<CodeCopy :code="code" />
Expand Down

0 comments on commit 4f7ae7d

Please sign in to comment.