mirror of
https://github.com/makeplane/plane.git
synced 2025-12-24 23:59:40 +01:00
fix: page title fixed height (#6242)
This commit is contained in:
committed by
GitHub
parent
f10f9cbd41
commit
c10b875e2a
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user