fix: status selection style

This commit is contained in:
fantasticit 2022-04-25 10:55:14 +08:00
parent f89c1051db
commit e5d0cf1fdd
3 changed files with 4 additions and 2 deletions

View File

@ -21,8 +21,8 @@ export const Status = Node.create({
name: 'status', name: 'status',
group: 'inline', group: 'inline',
inline: true, inline: true,
atom: true,
selectable: true, selectable: true,
atom: true,
addAttributes() { addAttributes() {
return { return {

View File

@ -29,7 +29,8 @@
.node-mind, .node-mind,
.node-codeBlock, .node-codeBlock,
.node-documentChildren, .node-documentChildren,
.node-documentReference { .node-documentReference,
.node-status {
&.selected-node { &.selected-node {
&:not(.has-focus) { &:not(.has-focus) {
::selection { ::selection {

View File

@ -92,6 +92,7 @@ export const StatusWrapper = ({ editor, node, updateAttributes }) => {
{isEditable ? ( {isEditable ? (
<Popover <Popover
showArrow showArrow
position="bottomLeft"
visible={visible} visible={visible}
onVisibleChange={onVisibleChange} onVisibleChange={onVisibleChange}
content={ content={