0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

fix(console): code editor line wrap (#3634)

This commit is contained in:
Darcy Ye 2023-03-29 17:03:00 +08:00 committed by GitHub
parent 2fc9c87553
commit 7845872196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -48,7 +48,7 @@
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
font-family: 'Roboto Mono', monospace; font-family: 'Roboto Mono', monospace;
white-space: nowrap; white-space: pre;
word-break: normal; word-break: normal;
position: absolute; position: absolute;
inset: 0; inset: 0;

View file

@ -104,6 +104,7 @@ function CodeEditor({
autoComplete="off" autoComplete="off"
autoCorrect="off" autoCorrect="off"
data-gramm="false" data-gramm="false"
wrap="false"
readOnly={isReadonly} readOnly={isReadonly}
spellCheck="false" spellCheck="false"
value={value} value={value}