fix content shift when expanding or collapsing

This commit is contained in:
Gimle Larpes 2025-07-21 14:54:31 +02:00
parent 8e4daa89ea
commit fc2feff69a

View file

@ -272,13 +272,7 @@ export function CodeBlock(children: ChildNode[], opts: HTMLReactParserOptions) {
</IconButton>
)}
</div>
<Scroll
direction={collapsed ? 'Both' : 'Horizontal'}
variant="Secondary"
size="300"
visibility="Hover"
hideTrack
>
<Scroll direction="Both" variant="Secondary" size="300" visibility="Hover" hideTrack>
<div id="code-block-content" className={css.CodeBlockInternal({ collapsed })}>
{domToReact(children, opts)}
</div>