aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-03-14 01:46:39 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-03-14 01:46:39 -0400
commit7d369df8096889fc0e1e606f90d161fd2296eb9d (patch)
treef96435b2c59474b380fb765625ee6a11777164c3 /src
parent97e4e6b2a198c7e26e74533bd0b63e325b54e7c2 (diff)
Schema row option order changed
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index 39fea2d2e..2b42d666b 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -121,8 +121,8 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
pointerEvents: !this._props.isContentActive() ? 'none' : undefined,
}}>
<IconButton
- tooltip="whether document interactions are enabled"
- icon={this.Document._lockedPosition ? <CgLockUnlock size="12px" /> : <CgLock size="12px" />}
+ tooltip="close"
+ icon={<CgClose size={'16px'} />}
size={Size.XSMALL}
onPointerDown={e =>
setupMoveUpEvents(
@@ -132,13 +132,14 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
emptyFunction,
undoable(e => {
e.stopPropagation();
- Doc.toggleLockedPosition(this.Document);
+ this._props.removeDocument?.(this.Document);
}, 'Delete Row')
)
- }></IconButton>
+ }
+ />
<IconButton
- tooltip="close"
- icon={<CgClose size={'16px'} />}
+ tooltip="whether document interactions are enabled"
+ icon={this.Document._lockedPosition ? <CgLockUnlock size="12px" /> : <CgLock size="12px" />}
size={Size.XSMALL}
onPointerDown={e =>
setupMoveUpEvents(
@@ -148,11 +149,10 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
emptyFunction,
undoable(e => {
e.stopPropagation();
- this._props.removeDocument?.(this.Document);
+ Doc.toggleLockedPosition(this.Document);
}, 'Delete Row')
)
- }
- />
+ }></IconButton>
<IconButton
tooltip="open preview"
icon={<FaExternalLinkAlt />}