Skip to content

Commit

Permalink
fix: allow code block contents to be scrollable (#12531)
Browse files Browse the repository at this point in the history
Use same `pverflow-x` behavior we have in `project-description`.

`code-block` classes are only used in the `token.html` template today.

Fixes #12529

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman authored Nov 11, 2022
1 parent 1387d3a commit 1dcd472
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions warehouse/static/sass/blocks/_code-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ A custom styled code block.
margin-bottom: $spacing-unit / 2;
word-break: break-all;
direction: ltr;
overflow-x: auto;
}

0 comments on commit 1dcd472

Please sign in to comment.