Skip to content

Commit

Permalink
update(console): editor bubble menu invalid when readonly & header dr…
Browse files Browse the repository at this point in the history
…opdown zindex (#3118)
  • Loading branch information
waynelwz authored Jan 9, 2024
1 parent 40f67ae commit 443bfcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getPopoverOverrides = ({ left, top }) => {
},
},
style: {
zIndex: 999,
zIndex: 99,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion console/packages/starwhale-ui/src/TiptapEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function TiptapEditor({ id = '', initialContent, editable, onSave
// tabIndex={0}
className='relative self-center min-h-[500px] w-full h-full bg-white sm:mb-[calc(10px)] sm:rounded-lg'
>
{editor && <EditorBubbleMenu editor={editor} />}
{editor && editable && <EditorBubbleMenu editor={editor} />}
<EditorContent editor={editor} />
</div>
)
Expand Down

0 comments on commit 443bfcd

Please sign in to comment.