Skip to content

Commit 9b41993

Browse files
committed
fix(docs): resolve issues with line height in ComponentPreview
1 parent 081b1ef commit 9b41993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/app/components/ComponentPreview.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ highlightedCode.value = await codeToHtml(sourceCode!, { lang: 'vue', theme: 'mat
2020

2121
<template>
2222
<div class="flex flex-col md:flex-row p-4 rounded-lg shadow-lg">
23-
<ProseCode class="leading-3 p-5">
24-
<code class="[&>pre]:bg-transparent!" v-html="highlightedCode" />
23+
<ProseCode class="p-5">
24+
<div class="[&>pre]:bg-transparent! [&_.line]:inline-block!" v-html="highlightedCode" />
2525
</ProseCode>
2626
<div class="flex-1 p-4 bg-muted">
2727
<component :is="componentModule?.default" />

0 commit comments

Comments
 (0)