refactor: make code block shadows consistent with new admonitions (#5215)

This commit is contained in:
Sébastien Lorber 2021-07-23 18:11:40 +02:00 committed by GitHub
parent 083037d7a5
commit a7a5ea3466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 18 deletions

View file

@ -210,9 +210,7 @@ export default function CodeBlock({
<pre
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
tabIndex={0}
className={clsx(className, styles.codeBlock, 'thin-scrollbar', {
[styles.codeBlockWithTitle]: codeBlockTitle,
})}
className={clsx(className, styles.codeBlock, 'thin-scrollbar')}
style={style}>
<code className={styles.codeBlockLines}>
{tokens.map((line, i) => {