Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions web/core/components/pages/editor/editor-body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,12 @@ export const PageEditorBody: React.FC<Props> = observer((props) => {
})}
>
<div className="size-full flex flex-col gap-y-7 overflow-y-auto overflow-x-hidden">
<div className="relative w-full flex-shrink-0 md:pl-5 px-4 h-[38px]">
<PageEditorTitle
editorRef={editorRef}
title={pageTitle}
updateTitle={updateTitle}
readOnly={!isContentEditable}
/>
</div>
<PageEditorTitle
editorRef={editorRef}
title={pageTitle}
updateTitle={updateTitle}
readOnly={!isContentEditable}
/>
<CollaborativeDocumentEditorWithRef
editable={isContentEditable}
id={pageId}
Expand Down
6 changes: 3 additions & 3 deletions web/core/components/pages/editor/title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export const PageEditorTitle: React.FC<Props> = observer((props) => {
});

return (
<>
<div className="relative w-full flex-shrink-0 md:pl-5 px-4">
{readOnly ? (
<h6 className={cn(titleClassName, "break-words")}>{title}</h6>
<h6 className={cn(titleClassName, "break-words pb-1.5")}>{title}</h6>
) : (
<>
<TextArea
Expand Down Expand Up @@ -71,6 +71,6 @@ export const PageEditorTitle: React.FC<Props> = observer((props) => {
</div>
</>
)}
</>
</div>
);
});
Loading