diff options
| author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-22 14:22:23 -0500 |
|---|---|---|
| committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-22 14:22:23 -0500 |
| commit | cec8cc0d8444b0321ec95a49d91a77a926462900 (patch) | |
| tree | fc8e25af5da9d30a17c4f619542ca22ed8794ea3 /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | adc4bce031b815fe4bcaaa16235eadf43b578f20 (diff) | |
more with previews
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 11 |
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 |
