fix: remirror empty state (#702)

* fix: minor pages ui

* fix: remirror empty state
This commit is contained in:
Aaryan Khandelwal 2023-04-04 19:27:13 +05:30 committed by GitHub
parent 9ce158fc10
commit 3519be9ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -125,12 +125,12 @@ export const GptAssistantModal: React.FC<Props> = ({
isOpen ? "block" : "hidden" isOpen ? "block" : "hidden"
}`} }`}
> >
{((content && content !== "") || htmlContent) && ( {((content && content !== "") || htmlContent !== "<p></p>") && (
<div className="text-sm page-block-section"> <div className="remirror-section text-sm">
Content: Content:
<RemirrorRichTextEditor <RemirrorRichTextEditor
value={htmlContent ?? <p>{content}</p>} value={htmlContent ?? <p>{content}</p>}
customClassName="-mx-3 -my-3" customClassName="-m-3"
noBorder noBorder
borderOnFocus={false} borderOnFocus={false}
editable={false} editable={false}

View File

@ -363,6 +363,10 @@ img.ProseMirror-separator {
min-height: 50px; min-height: 50px;
} }
.remirror-section .remirror-editor-wrapper .remirror-editor {
min-height: 0 !important;
}
.remirror-editor-wrapper { .remirror-editor-wrapper {
padding-top: 8px; padding-top: 8px;
} }