Skip to content

Commit

Permalink
switch code block buttons so copy is always on the right
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed May 22, 2024
1 parent 5fcf656 commit 31fba5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ui/mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ const typography = {
lines > 1 ? 'top-4' : 'top-1/2 -translate-y-1/2'
)}
>
<CopyButton codeString={raw} />
{lines >= 5 ? (
<FullsizeView code={props.children} codeString={raw} />
) : null}
<CopyButton codeString={raw} />
</div>
<pre
className={cn(
Expand Down

0 comments on commit 31fba5e

Please sign in to comment.