From c4f7368c1c18d868aec59665218103f678a7843d Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 26 May 2025 15:19:11 +0100 Subject: [PATCH] Lexical: Fixed table column resizing changes not appearing Also fixed some resizer zindex issues. --- resources/js/wysiwyg/lexical/table/LexicalTableNode.ts | 4 ++-- resources/sass/_editor.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/wysiwyg/lexical/table/LexicalTableNode.ts b/resources/js/wysiwyg/lexical/table/LexicalTableNode.ts index a10361475..105764be2 100644 --- a/resources/js/wysiwyg/lexical/table/LexicalTableNode.ts +++ b/resources/js/wysiwyg/lexical/table/LexicalTableNode.ts @@ -54,7 +54,7 @@ export class TableNode extends CommonBlockNode { static clone(node: TableNode): TableNode { const newNode = new TableNode(node.__key); copyCommonBlockProperties(node, newNode); - newNode.__colWidths = node.__colWidths; + newNode.__colWidths = [...node.__colWidths]; newNode.__styles = new Map(node.__styles); return newNode; } @@ -169,7 +169,7 @@ export class TableNode extends CommonBlockNode { getColWidths(): string[] { const self = this.getLatest(); - return self.__colWidths; + return [...self.__colWidths]; } getStyles(): StyleMap { diff --git a/resources/sass/_editor.scss b/resources/sass/_editor.scss index 35f11c5a2..4112f6288 100644 --- a/resources/sass/_editor.scss +++ b/resources/sass/_editor.scss @@ -422,7 +422,7 @@ body.editor-is-fullscreen { .editor-table-marker { position: fixed; background-color: var(--editor-color-primary); - z-index: 99; + z-index: 3; user-select: none; opacity: 0; &:hover, &.active {