(core) Support reordering conditional styles

Summary: Conditional style rules can now be reordered by dragging and dropping them.

Test Plan: Browser test.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4251
This commit is contained in:
George Gevoian
2024-05-13 10:55:52 -07:00
parent 85f1040439
commit e299f4466b
10 changed files with 157 additions and 75 deletions

View File

@@ -270,7 +270,7 @@ export class SortConfig extends Disposable {
}
const cssDragRow = styled('div', `
display: flex !important;
display: flex;
align-items: center;
margin: 0 16px 0px 0px;
& > .kf_draggable_content {

View File

@@ -440,7 +440,7 @@ function unselectDeletedFields(selection: Set<number>, event: {deleted: IField[]
}
export const cssDragRow = styled('div', `
display: flex !important;
display: flex;
align-items: center;
margin: 0 16px 0px 0px;
& > .kf_draggable_content {