Fix OpenAPI code sample box not scrolling on initial load (#4279)

This commit is contained in:
Nolann B.
2026-05-28 12:04:32 +02:00
committed by GitHub
parent b9bb535d52
commit b116a0a2a4
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Fix OpenAPI CodeBlock scroll
@@ -63,7 +63,7 @@ export const CodeBlockRenderer = forwardRef(function CodeBlockRenderer(
</div>
) : null}
</div>
<div className="relative">
<div className="relative flex min-h-0 flex-col">
<CopyCodeButton
codeId={codeId}
style="absolute top-2 right-2 z-2 self-start justify-self-end font-sans leading-none opacity-0 backdrop-blur-md group-hover/codeblock:opacity-11"