Skip to content

Commit

Permalink
Provide a minimum of code wrapping for the code block.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Nov 4, 2020
1 parent e2bdfbe commit a88bbb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/code/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Provide a minimum of overflow handling.
.wp-block-code code {
white-space: pre-wrap;
overflow-wrap: break-word;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import "./buttons/style.scss";
@import "./calendar/style.scss";
@import "./categories/style.scss";
@import "./code/style.scss";
@import "./columns/style.scss";
@import "./cover/style.scss";
@import "./embed/style.scss";
Expand Down

0 comments on commit a88bbb8

Please sign in to comment.