Skip to content

Commit

Permalink
[#65872] fix word wraping in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Sep 24, 2024
1 parent 2420142 commit 1cf273f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/MystEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const StatusBanner = styled.div`
* Ideally we would use CSS Grid but that has some performance issues with CodeMirror on Chromium. */
const FlexWrapper = styled.div`
flex: 1;
min-width: 0;
height: 100%;
min-height: 500px;
`;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Preview = styled.div`
border-radius: var(--border-radius);
vertical-align: top;
color: var(--gray-900);
word-break: break-all;
word-wrap: break-word;
position: relative;
overflow-y: auto;
scrollbar-width: thin;
Expand Down

0 comments on commit 1cf273f

Please sign in to comment.