We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03bc7b1 commit 919c4c1Copy full SHA for 919c4c1
src/components/ui/code-highlighter/shiki/ShikiWrapper.tsx
@@ -67,7 +67,7 @@ export const ShikiHighLighterWrapper = forwardRef<
67
$hightlighted,
68
)
69
70
- $el.scrollTop = lineHeight * childIndexInParent - 30
+ $el.scrollTop = lineHeight * childIndexInParent - $el.clientHeight / 2
71
}
72
} else {
73
setIsOverflow(false)
0 commit comments