We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a7180a + 199d546 commit 0ee1009Copy full SHA for 0ee1009
1 file changed
src/components/AnnotatedCode/index.astro
@@ -95,7 +95,7 @@ for (const attr of codeTag.attributes) {
95
return (
96
<tr class="[&>*]:align-top [&>*]:m-0 [&>*:not(:first-child)]:py-2 [&>*:not(:first-child)]:pl-6 [&>*:not(:first-child)]:max-w-xl">
97
<td class="align-top p-0" style="height:100%; margin:0">
98
- <pre {...preAttrs} style={`${getPreStyle(i)};height:100%`}><code {...codeAttrs} set:html={lineNodes.map((n) => n.outerHTML).join('\n')} /></pre>
+ <pre {...preAttrs} style={`${getPreStyle(i)};overflow:visible;white-space:pre-wrap;word-wrap:break-word;height:100%;`}><code {...codeAttrs} set:html={lineNodes.map((n) => n.outerHTML).join('\n')} /></pre>
99
</td>
100
{props.columns ? (
101
<Fragment set:html={row.slot ? Astro.slots.render(row.slot) : undefined} />
0 commit comments