From 7d369df8096889fc0e1e606f90d161fd2296eb9d Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Thu, 14 Mar 2024 01:46:39 -0400 Subject: Schema row option order changed --- .../collections/collectionSchema/SchemaRowBox.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') 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() { pointerEvents: !this._props.isContentActive() ? 'none' : undefined, }}> : } + tooltip="close" + icon={} size={Size.XSMALL} onPointerDown={e => setupMoveUpEvents( @@ -132,13 +132,14 @@ export class SchemaRowBox extends ViewBoxBaseComponent() { emptyFunction, undoable(e => { e.stopPropagation(); - Doc.toggleLockedPosition(this.Document); + this._props.removeDocument?.(this.Document); }, 'Delete Row') ) - }> + } + /> } + tooltip="whether document interactions are enabled" + icon={this.Document._lockedPosition ? : } size={Size.XSMALL} onPointerDown={e => setupMoveUpEvents( @@ -148,11 +149,10 @@ export class SchemaRowBox extends ViewBoxBaseComponent() { emptyFunction, undoable(e => { e.stopPropagation(); - this._props.removeDocument?.(this.Document); + Doc.toggleLockedPosition(this.Document); }, 'Delete Row') ) - } - /> + }> } -- cgit v1.2.3-70-g09d2