diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-03 23:58:49 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-03 23:58:49 -0400 |
| commit | 644cf9b52bd59221167f4edd840a45941e1a238a (patch) | |
| tree | 4158698f18f5a45241d17c27384479182e3690d5 /src | |
| parent | d3b45f966bbd8aa5e8f1bf7d115c5a4859b01889 (diff) | |
from last
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/views/TemplateMenu.tsx | 2 | ||||
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/TemplateMenu.tsx b/src/client/views/TemplateMenu.tsx index 3fb330840..f2fb26679 100644 --- a/src/client/views/TemplateMenu.tsx +++ b/src/client/views/TemplateMenu.tsx @@ -161,7 +161,7 @@ export class TemplateMenu extends React.Component<TemplateMenuProps> { ); } return <ul className="template-list" style={{ display: "block" }}> - <input placeholder="+ layout" ref={this._customRef} onKeyPress={this.onCustomKeypress}></input> + <input placeholder="+ layout" ref={this._customRef} onKeyPress={this.onCustomKeypress}/> {templateMenu} </ul>; } diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index 23d701ffd..c4f9e873c 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -282,7 +282,7 @@ export class CollectionView extends Touchable<FieldViewProps> { bodyPanelWidth = () => this.props.PanelWidth() - this.facetWidth(); getTransform = () => this.props.ScreenToLocalTransform().translate(-this.facetWidth(), 0); - facetWidth = () => Math.min(this.props.PanelWidth() - 25, this._facetWidth); + facetWidth = () => Math.max(0, Math.min(this.props.PanelWidth() - 25, this._facetWidth)); @computed get dataDoc() { return (this.props.DataDoc && this.props.Document.isTemplateForField ? Doc.GetProto(this.props.DataDoc) : |
