Skip to content

Commit

Permalink
fix: Editor long words not wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored and JanCizmar committed Jun 9, 2022
1 parent c26d94c commit abb664e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions webapp/src/component/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ const StyledWrapper = styled('div')<{
minheight: string | number;
background: string | undefined;
}>`
display: flex;
flex-grow: 1;
align-items: stretch;
display: grid;
& .react-codemirror2 {
display: flex;
flex-grow: 1;
display: grid;
position: relative;
align-self: stretch;
}
& .CodeMirror *::selection {
Expand Down Expand Up @@ -61,6 +59,7 @@ const StyledWrapper = styled('div')<{
border: 0px;
background: transparent;
}
.CodeMirror-lint-marker-error {
width: 4px;
background: red;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ const StyledField = styled('div')`
const StyledEdtorWrapper = styled('div')`
background: ${({ theme }) => theme.palette.background.default};
align-self: stretch;
display: flex;
align-items: stretch;
display: grid;
`;

const StyledTags = styled('div')`
Expand Down

0 comments on commit abb664e

Please sign in to comment.