mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
Lexical: Fixed table column resizing changes not appearing
Also fixed some resizer zindex issues.
This commit is contained in:
@@ -54,7 +54,7 @@ export class TableNode extends CommonBlockNode {
|
|||||||
static clone(node: TableNode): TableNode {
|
static clone(node: TableNode): TableNode {
|
||||||
const newNode = new TableNode(node.__key);
|
const newNode = new TableNode(node.__key);
|
||||||
copyCommonBlockProperties(node, newNode);
|
copyCommonBlockProperties(node, newNode);
|
||||||
newNode.__colWidths = node.__colWidths;
|
newNode.__colWidths = [...node.__colWidths];
|
||||||
newNode.__styles = new Map(node.__styles);
|
newNode.__styles = new Map(node.__styles);
|
||||||
return newNode;
|
return newNode;
|
||||||
}
|
}
|
||||||
@@ -169,7 +169,7 @@ export class TableNode extends CommonBlockNode {
|
|||||||
|
|
||||||
getColWidths(): string[] {
|
getColWidths(): string[] {
|
||||||
const self = this.getLatest();
|
const self = this.getLatest();
|
||||||
return self.__colWidths;
|
return [...self.__colWidths];
|
||||||
}
|
}
|
||||||
|
|
||||||
getStyles(): StyleMap {
|
getStyles(): StyleMap {
|
||||||
|
@@ -422,7 +422,7 @@ body.editor-is-fullscreen {
|
|||||||
.editor-table-marker {
|
.editor-table-marker {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: var(--editor-color-primary);
|
background-color: var(--editor-color-primary);
|
||||||
z-index: 99;
|
z-index: 3;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
&:hover, &.active {
|
&:hover, &.active {
|
||||||
|
Reference in New Issue
Block a user