diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss index df9ecae77..5c42c969f 100644 --- a/app/src/assets/scss/protyle/_protyle.scss +++ b/app/src/assets/scss/protyle/_protyle.scss @@ -274,8 +274,11 @@ .protyle-background { position: relative; - &:not(.protyle-background--enable) .protyle-background__img .protyle-icons { - display: none; + &:not(.protyle-background--enable) { + .protyle-background__img .protyle-icons, + .b3-chips__doctag .b3-chip__close { + display: none; + } } &--enable { diff --git a/app/src/boot/globalEvent/mousemove.ts b/app/src/boot/globalEvent/mousemove.ts index c87e3cafb..a4932a1b5 100644 --- a/app/src/boot/globalEvent/mousemove.ts +++ b/app/src/boot/globalEvent/mousemove.ts @@ -224,8 +224,8 @@ export const windowMouseMove = (event: MouseEvent, mouseIsEnter: boolean) => { const blockElement = hasClosestByClassName(target, "table"); if (blockElement && blockElement.style.cursor !== "col-resize" && !hasClosestByClassName(blockElement, "protyle-wysiwyg__embed")) { const cellElement = (hasClosestByTag(target, "TH") || hasClosestByTag(target, "TD")) as HTMLTableCellElement; - if (cellElement) { - const tableElement = blockElement.querySelector("table"); + const tableElement = blockElement.querySelector("table"); + if (cellElement && tableElement && tableElement.getAttribute("contenteditable") === "true") { const tableHeight = blockElement.querySelector("table").clientHeight; const resizeElement = blockElement.querySelector(".table__resize"); if (blockElement.style.textAlign === "center" || blockElement.style.textAlign === "right") {