[WEB-3747] regression: readonly mode with fragments (#6861)

This commit is contained in:
M. Palanikannan
2025-04-02 17:34:28 +05:30
committed by GitHub
parent a57c37c26c
commit 523ab3f4a1
4 changed files with 7 additions and 9 deletions

View File

@@ -28,11 +28,11 @@ export const PageRenderer = (props: IPageRenderer) => {
>
<EditorContentWrapper editor={editor} id={id} tabIndex={tabIndex} />
{editor.isEditable && (
<>
<div>
{bubbleMenuEnabled && <EditorBubbleMenu editor={editor} />}
<BlockMenu editor={editor} />
<AIFeaturesMenu menu={aiHandler?.menu} />
</>
</div>
)}
</EditorContainer>
</div>

View File

@@ -128,10 +128,9 @@ export const LinkEditView = ({ viewProps }: LinkEditViewProps) => {
return (
<div
onKeyDown={handleKeyDown}
className="shadow-md rounded p-2 flex flex-col gap-3 bg-custom-background-90 border-custom-border-100 border-2 animate-in fade-in translate-y-1 duration-200 origin-center"
className="shadow-md rounded p-2 flex flex-col gap-3 bg-custom-background-90 border-custom-border-100 border-2 animate-in fade-in translate-y-1"
style={{
animationTimingFunction: "cubic-bezier(.55, .085, .68, .53)",
transformOrigin: "center",
transition: "all 0.1s cubic-bezier(.55, .085, .68, .53)",
}}
tabIndex={0}
>

View File

@@ -23,10 +23,9 @@ export const LinkPreview = ({
return (
<div
className="absolute left-0 top-0 max-w-max animate-in fade-in translate-y-1 duration-300 origin-center"
className="absolute left-0 top-0 max-w-max animate-in fade-in translate-y-1"
style={{
animationTimingFunction: "cubic-bezier(.55, .085, .68, .53)",
transformOrigin: "center",
transition: "all 0.2s cubic-bezier(.55, .085, .68, .53)",
}}
>
<div className="shadow-md items-center rounded p-2 flex gap-3 bg-custom-background-90 border-custom-border-100 border-2 text-custom-text-300 text-xs">