fix: dashboard editor style

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2023-05-18 11:32:27 +08:00
parent 38ecf47f8f
commit f2895682b3
2 changed files with 6 additions and 2 deletions
@@ -591,12 +591,12 @@ export default function SubdomainEditor() {
{isMobileLayout ? (
!isRendering ? (
<CodeMirrorEditor
cmStyle={cmStyle}
value={initialContent}
placeholder={t("Start writing...") as string}
onChange={onChange}
handleDropFile={handleDropFile}
onScroll={onEditorScroll}
cmStyle={cmStyle}
className={`h-full ${
isMobileLayout ? "w-full" : "border-r w-1/2 px-5"
}`}
@@ -625,7 +625,10 @@ export default function SubdomainEditor() {
onChange={onChange}
handleDropFile={handleDropFile}
onScroll={onEditorScroll}
// onUpdate={onUpdate}
cmStyle={cmStyle}
className={`h-full ${
isMobileLayout ? "w-full" : "border-r w-1/2 px-5"
}`}
onCreateEditor={onCreateEditor}
onMouseEnter={() => {
setCurrentScrollArea("editor")
+1
View File
@@ -249,6 +249,7 @@ const LazyCodeMirrorEditor = forwardRef<
return (
<>
<div
data-cm-editor
ref={editorElementRef}
onMouseEnter={onMouseEnter}
className={loading ? "" : props.className}