Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(ui): fix the problem of editor spacing error

robineeb08a88d6f3
diff --git a/ui/src/pages/Questions/EditAnswer/index.scss b/ui/src/pages/Questions/EditAnswer/index.scss
index a51e9b01..e9a156cf 100644
--- a/ui/src/pages/Questions/EditAnswer/index.scss
+++ b/ui/src/pages/Questions/EditAnswer/index.scss
@@ -1,5 +1,5 @@
.edit-answer-wrap {
- .content-wrap {
+ .question-content-wrap {
position: relative;
margin-bottom: 20px;
overflow: hidden;
diff --git a/ui/src/pages/Questions/EditAnswer/index.tsx b/ui/src/pages/Questions/EditAnswer/index.tsx
index 7591c74d..58524163 100644
--- a/ui/src/pages/Questions/EditAnswer/index.tsx
+++ b/ui/src/pages/Questions/EditAnswer/index.tsx
@@ -140,7 +140,7 @@ const Ask = () => {
<h5 className="mb-3">{data?.question.title}</h5>
</a>
- <div className="content-wrap">
+ <div className="question-content-wrap">
<div
ref={questionContentRef}
className="content position-absolute top-0 w-100"
@@ -174,7 +174,7 @@ const Ask = () => {
</Form.Select>
</Form.Group>
- <Form.Group controlId="answer" className="mt-4">
+ <Form.Group controlId="answer" className="mt-3">
<Form.Label>{t('form.fields.answer.label')}</Form.Label>
<Editor
value={formData.answer.value}