mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 18:26:09 +01:00
This commit is contained in:
parent
8c6fdd2a14
commit
0f94a9e618
3 changed files with 10 additions and 3 deletions
|
|
@ -402,6 +402,11 @@
|
|||
&:hover .block__icon {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover .b3-chip[data-type=block-more] {
|
||||
top: 2px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&--wrap {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue