Lexical: Fixed table column resizing changes not appearing

Also fixed some resizer zindex issues.
This commit is contained in:
Dan Brown 2025-05-26 15:19:11 +01:00
parent 2a32475541
commit c4f7368c1c
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {