Skip to content

Commit

Permalink
Fix long lines in code blocks in the document editor overflowing the …
Browse files Browse the repository at this point in the history
…editor (#7783)
  • Loading branch information
emmatown authored Aug 10, 2022
1 parent 9210723 commit e6e1315
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-bears-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/fields-document': patch
---

Fixes long lines in code blocks in the document editor overflowing the editor
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const CodeElement = ({ attributes, children }: RenderElementProps) => {
fontFamily: typography.fontFamily.monospace,
fontSize: typography.fontSize.small,
padding: `${spacing.small}px ${spacing.medium}px`,
overflowX: 'auto',
}}
{...attributes}
>
Expand Down

0 comments on commit e6e1315

Please sign in to comment.