mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
b01d1cae4f
commit
34fd791e0e
1 changed files with 2 additions and 1 deletions
|
|
@ -223,7 +223,8 @@ export const windowMouseMove = (event: MouseEvent, mouseIsEnter: boolean) => {
|
|||
const tableElement = blockElement.querySelector("table");
|
||||
if (cellElement && tableElement && tableElement.getAttribute("contenteditable") === "true") {
|
||||
const tableHeight = blockElement.querySelector("colgroup").clientHeight;
|
||||
const captionHeight = blockElement.querySelector("caption")?.clientHeight || 0;
|
||||
const captionElement = blockElement.querySelector("caption");
|
||||
const captionHeight = (captionElement && captionElement.style.captionSide !== "bottom") ? captionElement.clientHeight : 0;
|
||||
const resizeElement = blockElement.querySelector(".table__resize");
|
||||
if (blockElement.style.textAlign === "center" || blockElement.style.textAlign === "right") {
|
||||
resizeElement.parentElement.style.left = tableElement.offsetLeft + "px";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue