Skip to content

Commit

Permalink
fix(prose): code blcok inline copy padding
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Aug 11, 2024
1 parent 53c78bd commit 1a4a8f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/content/ProseCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<UiScrollArea>
<div
class="overflow-x-auto py-3 text-sm"
:class="[!filename && 'inline-copy', !language && 'pl-3', !inGroup && 'in-group']"
:class="[!inGroup && !filename && 'inline-copy', !language && 'pl-3', !inGroup]"
>
<slot />
</div>
Expand Down Expand Up @@ -76,7 +76,7 @@ const icon = iconMap.get(props.filename?.toLowerCase()) || iconMap.get(props.lan
padding-right: 0.75rem;
}
.in-group .line {
padding-right: 3rem;
.inline-copy .line {
padding-right: 2.75rem;
}
</style>

0 comments on commit 1a4a8f0

Please sign in to comment.