Vanessa 2025-09-26 13:18:07 +08:00
parent 6d9f9a3049
commit 42381b9f0f
2 changed files with 7 additions and 4 deletions

View file

@ -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 {

View file

@ -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") {