aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-22 14:22:23 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-22 14:22:23 -0500
commitcec8cc0d8444b0321ec95a49d91a77a926462900 (patch)
treefc8e25af5da9d30a17c4f619542ca22ed8794ea3 /src/client/views/collections/CollectionSchemaView.tsx
parentadc4bce031b815fe4bcaaa16235eadf43b578f20 (diff)
more with previews
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaView.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx
index 196ebbdc6..574884e86 100644
--- a/src/client/views/collections/CollectionSchemaView.tsx
+++ b/src/client/views/collections/CollectionSchemaView.tsx
@@ -791,9 +791,14 @@ export class SchemaTable extends React.Component<SchemaTableProps> {
render() {
const preview = "";
return <div className="collectionSchemaView-table" onPointerDown={this.onPointerDown} onWheel={e => this.props.active(true) && e.stopPropagation()} onDrop={e => this.props.onDrop(e, {})} onContextMenu={this.onContextMenu} >
+ {this.reactTable}
+ <div className="collectionSchemaView-addRow" onClick={() => this.createRow()}>+ new</div>
{!this._showDoc ? (null) :
- <div onClick={() => { this.onOpenClick(); }}
- style={{ position: "absolute", width: 400, height: 300, transform: `translate(${this._showDocPos[0]}px, ${this._showDocPos[1]}px)` }}
+ <div className="collectionSchemaView-documentPreview" //onClick={() => { this.onOpenClick(); }}
+ style={{
+ position: "absolute", width: 400, height: 300,
+ transform: `translate(${this._showDocPos[0]}px, ${this._showDocPos[1]}px)`
+ }}
ref="overlay"><ContentFittingDocumentView
Document={this._showDoc}
DataDoc={this._showDataDoc}
@@ -820,8 +825,6 @@ export class SchemaTable extends React.Component<SchemaTableProps> {
ContentScaling={returnOne}>
</ContentFittingDocumentView>
</div>}
- {this.reactTable}
- <div className="collectionSchemaView-addRow" onClick={() => this.createRow()}>+ new</div>
</div>;
}
} \ No newline at end of file