This is an automated email from the ASF dual-hosted git repository.
robin0716 pushed a commit to branch refactor/editor
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/refactor/editor by this push:
new 54eb1058 refactor(ui): Remove useless styles
54eb1058 is described below
commit 54eb1058de96f0e2f6a63c1f16ce822cc54302d5
Author: robin <[email protected]>
AuthorDate: Tue Apr 16 16:22:29 2024 +0800
refactor(ui): Remove useless styles
---
ui/src/components/Editor/index.scss | 3 +++
ui/src/components/Editor/utils/index.ts | 9 ---------
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/ui/src/components/Editor/index.scss
b/ui/src/components/Editor/index.scss
index 67b5f454..14ad7c89 100644
--- a/ui/src/components/Editor/index.scss
+++ b/ui/src/components/Editor/index.scss
@@ -187,6 +187,9 @@
}
}
}
+ .md-editor {
+ padding: 1rem;
+ }
.content-wrap {
height: 264px;
}
diff --git a/ui/src/components/Editor/utils/index.ts
b/ui/src/components/Editor/utils/index.ts
index e39e3e91..5abdcb57 100644
--- a/ui/src/components/Editor/utils/index.ts
+++ b/ui/src/components/Editor/utils/index.ts
@@ -88,15 +88,6 @@ export const useEditor = ({
'&.cm-focused': {
outline: 'none',
},
- '.cm-content': {
- width: '100%',
- padding: '1rem',
- },
- '.cm-line': {
- whiteSpace: 'pre-wrap',
- wordWrap: 'break-word',
- wordBreak: 'break-all',
- },
},
{ dark: false },
);