Skip to content

Commit

Permalink
fix(prose): code padding
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <[email protected]>
  • Loading branch information
ZTL-UwU committed Aug 9, 2024
1 parent 98f758c commit fbf2a4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions components/content/ProseCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<span v-if="!filename" class="absolute top-3 right-3">
<CodeCopy :code="code" />
</span>
<div class="pr-9 bg-muted/30">
<div class="bg-muted/30">
<UiScrollArea>
<div
class="py-3 text-sm overflow-x-auto"
:class="[`highlight-${language}`, !filename && 'inline-copy', !language && 'pl-3']"
:class="[!filename && 'inline-copy', !language && 'pl-3', !inGroup && 'in-group']"
>
<slot />
</div>
Expand Down Expand Up @@ -75,4 +75,8 @@ const icon = iconMap.get(props.filename?.toLowerCase()) || iconMap.get(props.lan
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.in-group .line {
padding-right: 3rem;
}
</style>
8 changes: 4 additions & 4 deletions content/1.getting-started/3.writing/2.components.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,10 @@ npm i -D @iconify-json/collection-name
---

#title
Effortless and Beautiful<br>Docs Template.
Effortless and Beautiful :br Docs Template.

#description
Beautifully designed Nuxt Content template with shadcn-vue.<br>Customizable. Compatible. Open Source.
Beautifully designed Nuxt Content template with shadcn-vue. :br Customizable. Compatible. Open Source.
::
::
```mdc[Code]
Expand All @@ -754,10 +754,10 @@ npm i -D @iconify-json/collection-name
---
#title
Effortless and Beautiful<br>Docs Template.
Effortless and Beautiful :br Docs Template.
#description
Beautifully designed Nuxt Content template with shadcn-vue.<br>Customizable. Compatible. Open Source.
Beautifully designed Nuxt Content template with shadcn-vue. :br Customizable. Compatible. Open Source.
::
```
::
Expand Down
4 changes: 2 additions & 2 deletions content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ actions:
---

#title
Effortless and Beautiful<br>Docs Template.
Effortless and Beautiful :br Docs Template.

#description
Beautifully designed Nuxt Content template built with shadcn-vue.<br>Customizable. Compatible. Open Source.
Beautifully designed Nuxt Content template built with shadcn-vue. :br Customizable. Compatible. Open Source.
::

<div class="border rounded-lg shadow-md">
Expand Down

0 comments on commit fbf2a4f

Please sign in to comment.