Vanessa 2025-06-21 10:52:17 +08:00
parent 8c6fdd2a14
commit 0f94a9e618
3 changed files with 10 additions and 3 deletions

View file

@ -402,6 +402,11 @@
&:hover .block__icon {
opacity: 0;
}
&:hover .b3-chip[data-type=block-more] {
top: 2px;
display: block;
}
}
&--wrap {

View file

@ -435,7 +435,7 @@ ${genHintItemHTML(item)}
if (!cellElement) {
return;
}
const rowElement = hasClosestByClassName(cellElement, "av__row");
const rowElement = hasClosestByClassName(cellElement, nodeElement.getAttribute("data-av-type") === "table" ? "av__row" : "av__gallery-item");
if (!rowElement) {
return;
}

View file

@ -574,8 +574,10 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
}
protyle.toolbar.range.selectNodeContents(cellElements[0].lastChild);
focusByRange(protyle.toolbar.range);
cellElements[0].classList.add("av__cell--select");
addDragFill(cellElements[0]);
if (viewType === "table") {
cellElements[0].classList.add("av__cell--select");
addDragFill(cellElements[0]);
}
let textPlain = inputElement.value;
if (isDynamicRef(textPlain)) {
textPlain = textPlain.substring(2, 22 + 2);