Skip to content

Commit

Permalink
fix(#62): fix padding on pre element when no language tag or file tag
Browse files Browse the repository at this point in the history
  • Loading branch information
meganesu committed Jun 19, 2024
1 parent 1036d97 commit 17457b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/code-block/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

.pre {
overflow: auto;
padding-bottom: 1rem;
padding: 1rem 0;
margin-top: 0;
}

.code {
display: block;
width: 100%;
min-width: fit-content; /* for horizontal scroll */
}

Expand Down

0 comments on commit 17457b3

Please sign in to comment.