fix: page title fixed height (#6242)

This commit is contained in:
Aaryan Khandelwal
2024-12-20 13:24:19 +05:30
committed by GitHub
parent f10f9cbd41
commit c10b875e2a
2 changed files with 9 additions and 11 deletions

View File

@@ -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}

View File

@@ -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
@@ -71,6 +71,6 @@ export const PageEditorTitle: React.FC<Props> = observer((props) => {
</div>
</>
)}
</>
</div>
);
});