diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-22 17:14:33 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-22 17:14:33 -0400 |
| commit | 97090506ca22ce2f96b0c0cb44bf30b3c17f7b90 (patch) | |
| tree | 3d15c07002e3ac4e94bb26cd1c6bd4a21a383256 /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | cec8cc0d8444b0321ec95a49d91a77a926462900 (diff) | |
fixed display of document preview for schema view
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 574884e86..03db0377a 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -796,8 +796,9 @@ export class SchemaTable extends React.Component<SchemaTableProps> { {!this._showDoc ? (null) : <div className="collectionSchemaView-documentPreview" //onClick={() => { this.onOpenClick(); }} style={{ - position: "absolute", width: 400, height: 300, - transform: `translate(${this._showDocPos[0]}px, ${this._showDocPos[1]}px)` + position: "absolute", width: 150, height: 150, + background: "dimGray", display: "block", top: 0, left: 0, + transform: `translate(${this._showDocPos[0]}px, ${this._showDocPos[1] - 180}px)` }} ref="overlay"><ContentFittingDocumentView Document={this._showDoc} |
