mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
6d9f9a3049
commit
42381b9f0f
2 changed files with 7 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue