mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 14:30: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>
|
||||
)}
|
||||
</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue