Skip to content

Commit

Permalink
Add a word-wrap style to the facebook embed preview screen (#11890)
Browse files Browse the repository at this point in the history
* Add a word-break style to the facebook embed preview screen to prevent the long embed url from breaking the block boundary

* Fix typo and missing space in scss comment
  • Loading branch information
brentswisher authored and youknowriad committed Dec 9, 2018
1 parent 06c4dc3 commit 29cfa83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/embed/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
font-size: $default-font-size;
}
}

// Stops long URLs from breaking out of the no preview available screen
.components-placeholder__error {
word-break: break-word;
}
}

0 comments on commit 29cfa83

Please sign in to comment.