fix: remirror empty state (#702)
* fix: minor pages ui * fix: remirror empty state
This commit is contained in:
parent
9ce158fc10
commit
3519be9ce8
2 changed files with 7 additions and 3 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue