[WIKI-498] [WIKI-567] feat: ability to rearrange columns and rows in table (#7624)

* feat: ability to rearrange columns and rows

* chore: update delete icon

* refactor: table utilities and plugins

* chore: handle edge cases

* chore: safe pseudo element inserts

---------

Co-authored-by: Sriram Veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Aaryan Khandelwal 2025-08-23 00:54:03 +05:30 committed by GitHub
parent 4ad88c969c
commit 9ecea15d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 1858 additions and 150 deletions

View file

@ -25,7 +25,7 @@
}
/* Selected cell outline */
&.selectedCell {
&.selectedCell:not(.content-hidden) {
user-select: none;
&::after {
@ -54,6 +54,30 @@
}
}
/* End selected cell outline */
.table-col-handle-container,
.table-row-handle-container {
& > button {
opacity: 0;
}
}
&:hover {
.table-col-handle-container,
.table-row-handle-container {
& > button {
opacity: 1;
}
}
}
.ProseMirror-widget + * {
padding-top: 0 !important;
}
&.content-hidden > * {
visibility: hidden;
}
}
th {
@ -67,6 +91,34 @@
background-color: rgba(var(--color-background-90));
}
}
.table-drop-marker {
background-color: rgba(var(--color-primary-100));
position: absolute;
z-index: 10;
&.hidden {
display: none;
}
}
.table-col-drag-marker,
.table-row-drag-marker {
position: absolute;
z-index: 10;
&.hidden {
display: none;
}
}
.table-col-drag-marker {
top: -9px;
}
.table-row-drag-marker {
left: 0;
}
}
/* Selected status */