fixes: about section unnecessary scrollbar (#10043)

pull/10053/head^2
Mehul 2023-07-11 14:56:43 +05:30 committed by GitHub
parent 6d35750784
commit a9ee5d6f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ export const Editor = (props: TextEditorProps) => {
className="editor-input"
/>
}
placeholder={<div className="text-muted -mt-11 p-3 text-sm">{props.placeholder || ""}</div>}
placeholder={
props?.placeholder ? (
<div className="text-muted -mt-11 p-3 text-sm">{props.placeholder}</div>
) : null
}
ErrorBoundary={LexicalErrorBoundary}
/>
<ListPlugin />