diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-13 21:35:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-13 21:35:46 -0400 |
| commit | 4fbdc12c026d0bd5891660018faa3473042344b3 (patch) | |
| tree | a218fb0415f2a85936ae867d4fd98b0f696bfb0e /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | 3debb7fedcd9c955ede46e57d4da182a5fa9acae (diff) | |
| parent | 16e663f807c77c56e64c23689dfdb7000fb2d0e9 (diff) | |
Merge pull request #606 from browngraphicslab/schema_search
Schema search
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 892148cd7..f1de3cee7 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -120,7 +120,9 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) { document.removeEventListener("pointerdown", this.detectClick); } - @action setHeaderIsEditing = (isEditing: boolean) => this._headerIsEditing = isEditing; + @action setHeaderIsEditing = (isEditing: boolean) => { + this._headerIsEditing = isEditing; + } detectClick = (e: PointerEvent): void => { if (this._node && this._node.contains(e.target as Node)) { @@ -631,7 +633,7 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) { style={{ overflow: this.props.overflow === true ? "scroll" : undefined, pointerEvents: !this.props.active() && !SnappingManager.GetIsDragging() ? "none" : undefined, - width: this.props.PanelWidth() || "100%", height: this.props.PanelHeight() || "100%", position: "relative", + width: name === "collectionSchemaView-searchContainer" ? "auto" : this.props.PanelWidth() || "100%", height: this.props.PanelHeight() || "100%", position: "relative", }} > <div className="collectionSchemaView-tableContainer" style={{ backgroundColor: "white", width: `calc(100% - ${this.previewWidth()}px)` }} |
