Skip to content

Commit

Permalink
Remove css styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Sep 11, 2024
1 parent 95e428c commit 04f026a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
flattenedStyle && {
caretColor: (flattenedStyle as TextStyle).color || 'black',
},
multiline && {whitespace: 'pre-wrap'},
{whiteSpace: multiline ? 'pre-wrap' : 'nowrap'},
disabled && styles.disabledInputStyles,
parseToReactDOMStyle(flattenedStyle),
]) as CSSProperties,
Expand Down
10 changes: 0 additions & 10 deletions src/web/MarkdownTextInput.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.react-native-live-markdown-input-singleline {
white-space: nowrap;
overflow: auto;
}

.react-native-live-markdown-input-multiline {
white-space: pre-wrap;
}
Expand All @@ -23,11 +18,6 @@
display: none;
}

.react-native-live-markdown-input-singleline * {
display: inline;
white-space: nowrap;
}

.react-native-live-markdown-input-singleline:empty::before,
.react-native-live-markdown-input-multiline:empty::before {
pointer-events: none;
Expand Down

0 comments on commit 04f026a

Please sign in to comment.