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',
group: 'inline',
inline: true,
atom: true,
selectable: true,
atom: true,
addAttributes() {
return {

View File

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

View File

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