Skip to content

Commit

Permalink
fixed codeblocks layout with long code
Browse files Browse the repository at this point in the history
  • Loading branch information
rahgurung committed Feb 17, 2021
1 parent 2ff5d34 commit f7e1539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ export default function CodeBlock({
tabIndex={0}
className={clsx(className, styles.codeBlock, 'thin-scrollbar', {
[styles.codeBlockWithTitle]: codeBlockTitle,
})}>
})}
style={style}>
<div className={styles.codeBlockLines} style={style}>
{tokens.map((line, i) => {
if (line.length === 1 && line[0].content === '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
float: left;
min-width: 100%;
padding: var(--ifm-pre-padding);
width: 1px;
}

@media print {
Expand Down

0 comments on commit f7e1539

Please sign in to comment.