mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
fix content shift when expanding or collapsing
This commit is contained in:
parent
8e4daa89ea
commit
fc2feff69a
1 changed files with 1 additions and 7 deletions
|
|
@ -272,13 +272,7 @@ export function CodeBlock(children: ChildNode[], opts: HTMLReactParserOptions) {
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Scroll
|
<Scroll direction="Both" variant="Secondary" size="300" visibility="Hover" hideTrack>
|
||||||
direction={collapsed ? 'Both' : 'Horizontal'}
|
|
||||||
variant="Secondary"
|
|
||||||
size="300"
|
|
||||||
visibility="Hover"
|
|
||||||
hideTrack
|
|
||||||
>
|
|
||||||
<div id="code-block-content" className={css.CodeBlockInternal({ collapsed })}>
|
<div id="code-block-content" className={css.CodeBlockInternal({ collapsed })}>
|
||||||
{domToReact(children, opts)}
|
{domToReact(children, opts)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue